移除部门的deleted_at字段

This commit is contained in:
none 2023-02-19 12:20:46 +08:00
parent 9c97b774a0
commit 384d61437f
3 changed files with 7 additions and 16 deletions

View File

@ -51,11 +51,6 @@ public class Department implements Serializable {
*/
private Date updatedAt;
/**
*
*/
private Date deletedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@ -77,8 +72,7 @@ public class Department implements Serializable {
&& (this.getParentChain() == null ? other.getParentChain() == null : this.getParentChain().equals(other.getParentChain()))
&& (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
&& (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
&& (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
&& (this.getDeletedAt() == null ? other.getDeletedAt() == null : this.getDeletedAt().equals(other.getDeletedAt()));
&& (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
}
@Override
@ -92,7 +86,6 @@ public class Department implements Serializable {
result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
result = prime * result + ((getDeletedAt() == null) ? 0 : getDeletedAt().hashCode());
return result;
}
@ -109,7 +102,6 @@ public class Department implements Serializable {
sb.append(", sort=").append(sort);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", deletedAt=").append(deletedAt);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();

View File

@ -7,7 +7,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author tengteng
* @description 针对表departments的数据库操作Mapper
* @createDate 2023-02-19 10:39:57
* @createDate 2023-02-19 12:19:45
* @Entity xyz.playedu.api.domain.Department
*/
@Mapper

View File

@ -12,12 +12,11 @@
<result property="sort" column="sort" jdbcType="INTEGER"/>
<result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
<result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
<result property="deletedAt" column="deleted_at" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,name,parent_id,
parent_chain,sort,created_at,
updated_at,deleted_at
updated_at
</sql>
</mapper>