package com.usky.entity.sys; import io.swagger.annotations.Api; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.persistence.*; import java.sql.Timestamp; import java.util.Objects; /** * @author laowo * @version v1.0 * @date 2021/8/19 14:03 * @description TODO **/ @Entity @Table(name = "sys_post", schema = "jx_cover", catalog = "") @ApiModel(value = "系统-岗位信息DTO") public class SysPostDTO { @ApiModelProperty("岗位id") private Integer postId; @ApiModelProperty("岗位编码") private String postCode; @ApiModelProperty("岗位名称") private String postName; @ApiModelProperty("岗位显示顺序") private int postSort; @ApiModelProperty("状态 0 正常 1 停用") private String status; @ApiModelProperty("创建人") private String createBy; @ApiModelProperty("创建时间") private Timestamp createTime; @ApiModelProperty("更新人") private String updateBy; @ApiModelProperty("更新时间") private Timestamp updateTime; @ApiModelProperty("备注") private String remark; @Id @Column(name = "post_id", nullable = false) public Integer getPostId() { return postId; } public void setPostId(Integer postId) { this.postId = postId; } @Basic @Column(name = "post_code", nullable = false, length = 64) public String getPostCode() { return postCode; } public void setPostCode(String postCode) { this.postCode = postCode; } @Basic @Column(name = "post_name", nullable = false, length = 50) public String getPostName() { return postName; } public void setPostName(String postName) { this.postName = postName; } @Basic @Column(name = "post_sort", nullable = false) public int getPostSort() { return postSort; } public void setPostSort(int postSort) { this.postSort = postSort; } @Basic @Column(name = "status", nullable = false, length = 1) public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } @Basic @Column(name = "create_by", nullable = true, length = 64) public String getCreateBy() { return createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } @Basic @Column(name = "create_time", nullable = true) public Timestamp getCreateTime() { return createTime; } public void setCreateTime(Timestamp createTime) { this.createTime = createTime; } @Basic @Column(name = "update_by", nullable = true, length = 64) public String getUpdateBy() { return updateBy; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } @Basic @Column(name = "update_time", nullable = true) public Timestamp getUpdateTime() { return updateTime; } public void setUpdateTime(Timestamp updateTime) { this.updateTime = updateTime; } @Basic @Column(name = "remark", nullable = true, length = 500) public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SysPostDTO that = (SysPostDTO) o; return postId == that.postId && postSort == that.postSort && Objects.equals(postCode, that.postCode) && Objects.equals(postName, that.postName) && Objects.equals(status, that.status) && Objects.equals(createBy, that.createBy) && Objects.equals(createTime, that.createTime) && Objects.equals(updateBy, that.updateBy) && Objects.equals(updateTime, that.updateTime) && Objects.equals(remark, that.remark); } @Override public int hashCode() { return Objects.hash(postId, postCode, postName, postSort, status, createBy, createTime, updateBy, updateTime, remark); } }