🚑 feat:实体类增加删除标识

This commit is contained in:
weihongyang 2022-08-10 08:49:11 +08:00
parent e644d027b2
commit c02c6cab10
14 changed files with 81 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -51,5 +52,10 @@ public class SysDeptEntity extends BaseEntity {
*/
@TableField(exist = false)
private String parentName;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -49,4 +50,9 @@ public class SysDictDataEntity extends BaseEntity {
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -45,4 +46,9 @@ public class SysDictTypeEntity extends BaseEntity {
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -1,5 +1,6 @@
package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -40,5 +41,10 @@ public class SysLogErrorEntity extends BaseEntity {
* 异常信息
*/
private String errorInfo;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -1,5 +1,6 @@
package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -31,5 +32,10 @@ public class SysLogLoginEntity extends BaseEntity {
* 用户名
*/
private String creatorName;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -1,5 +1,6 @@
package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -52,4 +53,9 @@ public class SysLogOperationEntity extends BaseEntity {
* 用户名
*/
private String creatorName;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -63,5 +64,10 @@ public class SysMenuEntity extends BaseEntity {
*/
@TableField(exist = false)
private String parentName;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -46,5 +47,10 @@ public class SysParamsEntity extends BaseEntity {
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -1,5 +1,6 @@
package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -24,5 +25,10 @@ public class SysRoleDataScopeEntity extends BaseEntity {
* 部门ID
*/
private Long deptId;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -43,4 +44,9 @@ public class SysRoleEntity extends BaseEntity {
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -1,5 +1,6 @@
package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -23,5 +24,10 @@ public class SysRoleMenuEntity extends BaseEntity {
* 菜单ID
*/
private Long menuId;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -1,5 +1,6 @@
package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -24,6 +25,11 @@ public class SysRoleUserEntity extends BaseEntity {
* 用户ID
*/
private Long userId;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -2,6 +2,7 @@ package com.cnbm.admin.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnbm.common.entity.BaseEntity;
import lombok.Data;
@ -76,5 +77,10 @@ public class SysUserEntity extends BaseEntity implements Serializable {
*/
@TableField(exist=false)
private String deptName;
/**
* 删除标识是否有效1可用 0不可用
*/
@TableLogic
private Integer valid;
}

View File

@ -3,6 +3,8 @@ package com.cnbm.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import java.io.Serializable;
@ -30,4 +32,5 @@ public abstract class BaseEntity implements Serializable {
*/
@TableField(fill = FieldFill.INSERT)
private Date createDate;
}