SysPostDTO.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. package com.usky.entity.sys;
  2. import io.swagger.annotations.Api;
  3. import io.swagger.annotations.ApiModel;
  4. import io.swagger.annotations.ApiModelProperty;
  5. import javax.persistence.*;
  6. import java.sql.Timestamp;
  7. import java.util.Objects;
  8. /**
  9. * @author laowo
  10. * @version v1.0
  11. * @date 2021/8/19 14:03
  12. * @description TODO
  13. **/
  14. @Entity
  15. @Table(name = "sys_post", schema = "jx_cover", catalog = "")
  16. @ApiModel(value = "系统-岗位信息DTO")
  17. public class SysPostDTO {
  18. @ApiModelProperty("岗位id")
  19. private Integer postId;
  20. @ApiModelProperty("岗位编码")
  21. private String postCode;
  22. @ApiModelProperty("岗位名称")
  23. private String postName;
  24. @ApiModelProperty("岗位显示顺序")
  25. private int postSort;
  26. @ApiModelProperty("状态 0 正常 1 停用")
  27. private String status;
  28. @ApiModelProperty("创建人")
  29. private String createBy;
  30. @ApiModelProperty("创建时间")
  31. private Timestamp createTime;
  32. @ApiModelProperty("更新人")
  33. private String updateBy;
  34. @ApiModelProperty("更新时间")
  35. private Timestamp updateTime;
  36. @ApiModelProperty("备注")
  37. private String remark;
  38. @Id
  39. @Column(name = "post_id", nullable = false)
  40. public Integer getPostId() {
  41. return postId;
  42. }
  43. public void setPostId(Integer postId) {
  44. this.postId = postId;
  45. }
  46. @Basic
  47. @Column(name = "post_code", nullable = false, length = 64)
  48. public String getPostCode() {
  49. return postCode;
  50. }
  51. public void setPostCode(String postCode) {
  52. this.postCode = postCode;
  53. }
  54. @Basic
  55. @Column(name = "post_name", nullable = false, length = 50)
  56. public String getPostName() {
  57. return postName;
  58. }
  59. public void setPostName(String postName) {
  60. this.postName = postName;
  61. }
  62. @Basic
  63. @Column(name = "post_sort", nullable = false)
  64. public int getPostSort() {
  65. return postSort;
  66. }
  67. public void setPostSort(int postSort) {
  68. this.postSort = postSort;
  69. }
  70. @Basic
  71. @Column(name = "status", nullable = false, length = 1)
  72. public String getStatus() {
  73. return status;
  74. }
  75. public void setStatus(String status) {
  76. this.status = status;
  77. }
  78. @Basic
  79. @Column(name = "create_by", nullable = true, length = 64)
  80. public String getCreateBy() {
  81. return createBy;
  82. }
  83. public void setCreateBy(String createBy) {
  84. this.createBy = createBy;
  85. }
  86. @Basic
  87. @Column(name = "create_time", nullable = true)
  88. public Timestamp getCreateTime() {
  89. return createTime;
  90. }
  91. public void setCreateTime(Timestamp createTime) {
  92. this.createTime = createTime;
  93. }
  94. @Basic
  95. @Column(name = "update_by", nullable = true, length = 64)
  96. public String getUpdateBy() {
  97. return updateBy;
  98. }
  99. public void setUpdateBy(String updateBy) {
  100. this.updateBy = updateBy;
  101. }
  102. @Basic
  103. @Column(name = "update_time", nullable = true)
  104. public Timestamp getUpdateTime() {
  105. return updateTime;
  106. }
  107. public void setUpdateTime(Timestamp updateTime) {
  108. this.updateTime = updateTime;
  109. }
  110. @Basic
  111. @Column(name = "remark", nullable = true, length = 500)
  112. public String getRemark() {
  113. return remark;
  114. }
  115. public void setRemark(String remark) {
  116. this.remark = remark;
  117. }
  118. @Override
  119. public boolean equals(Object o) {
  120. if (this == o) return true;
  121. if (o == null || getClass() != o.getClass()) return false;
  122. SysPostDTO that = (SysPostDTO) o;
  123. 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);
  124. }
  125. @Override
  126. public int hashCode() {
  127. return Objects.hash(postId, postCode, postName, postSort, status, createBy, createTime, updateBy, updateTime, remark);
  128. }
  129. }