mirror of https://gitee.com/stylefeng/roses
【7.6.0】【dict】更新字典实体
parent
a25cdf517b
commit
a4873b9c82
|
@ -24,9 +24,12 @@
|
|||
*/
|
||||
package cn.stylefeng.roses.kernel.dict.modular.entity;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseBusinessEntity;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
|
@ -39,9 +42,9 @@ import java.math.BigDecimal;
|
|||
* @since 2020/12/26 22:37
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("sys_dict")
|
||||
@TableName(value = "sys_dict", autoResultMap = true)
|
||||
@Data
|
||||
public class SysDict extends BaseEntity {
|
||||
public class SysDict extends BaseBusinessEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -129,23 +132,18 @@ public class SysDict extends BaseEntity {
|
|||
@ChineseDescription("排序")
|
||||
private BigDecimal dictSort;
|
||||
|
||||
/**
|
||||
* 是否删除,Y-被删除,N-未删除
|
||||
*/
|
||||
@TableField(value = "del_flag", fill = FieldFill.INSERT)
|
||||
@ChineseDescription("是否删除,Y-被删除,N-未删除")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 字典类型的名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ChineseDescription("字典类型的名称")
|
||||
private transient String dictTypeName;
|
||||
private String dictTypeName;
|
||||
|
||||
/**
|
||||
* 字典上级的名称(字典有上下级,字典类型没有上下级)
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ChineseDescription("字典上级的名称(字典有上下级,字典类型没有上下级)")
|
||||
private transient String parentName;
|
||||
private String parentName;
|
||||
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ import java.math.BigDecimal;
|
|||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_dict_type")
|
||||
@TableName(value = "sys_dict_type", autoResultMap = true)
|
||||
public class SysDictType extends BaseBusinessEntity {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue