字典内容启用禁用状态
This commit is contained in:
parent
105047f346
commit
cf7dc6b2de
|
@ -53,4 +53,8 @@ public class SysDictDataDTO implements Serializable {
|
|||
@ApiModelProperty(value = "更新时间")
|
||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
private Date updateDate;
|
||||
|
||||
@ApiModelProperty(value = "启用状态")
|
||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
private Integer status;
|
||||
}
|
|
@ -52,6 +52,9 @@ public class SysDictTypeDTO implements Serializable {
|
|||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
private Date updateDate;
|
||||
|
||||
@ApiModelProperty(value = "启用状态")
|
||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "对应字典数据")
|
||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
|
|
|
@ -47,4 +47,9 @@ public class SysDictDataEntity extends BaseEntity {
|
|||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateDate;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
private Integer status;
|
||||
}
|
|
@ -43,4 +43,9 @@ public class SysDictTypeEntity extends BaseEntity {
|
|||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateDate;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
private Integer status;
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE `sys_dict_data`
|
||||
MODIFY COLUMN `status` int NULL DEFAULT 1 COMMENT '启用状态(0未启用 1启用)' AFTER `update_date`;
|
||||
ALTER TABLE `sys_dict_type`
|
||||
MODIFY COLUMN `status` int NULL DEFAULT 1 COMMENT '启用状态(0未启用 1启用)' AFTER `update_date`;
|
Loading…
Reference in New Issue