SysPost.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. package com.ruoyi.system.domain;
  2. import javax.validation.constraints.NotBlank;
  3. import javax.validation.constraints.NotNull;
  4. import javax.validation.constraints.Size;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import com.ruoyi.common.annotation.Excel;
  8. import com.ruoyi.common.annotation.Excel.ColumnType;
  9. import com.ruoyi.common.core.domain.BaseEntity;
  10. /**
  11. * 岗位表 sys_post
  12. *
  13. * @author ruoyi
  14. */
  15. public class SysPost extends BaseEntity
  16. {
  17. private static final long serialVersionUID = 1L;
  18. /** 岗位序号 */
  19. @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
  20. private Long postId;
  21. /** 岗位编码 */
  22. @Excel(name = "岗位编码")
  23. private String postCode;
  24. /** 岗位名称 */
  25. @Excel(name = "岗位名称")
  26. private String postName;
  27. /** 岗位排序 */
  28. @Excel(name = "岗位排序")
  29. private Integer postSort;
  30. /** 状态(0正常 1停用) */
  31. @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  32. private String status;
  33. /** 用户是否存在此岗位标识 默认不存在 */
  34. private boolean flag = false;
  35. public Long getPostId()
  36. {
  37. return postId;
  38. }
  39. public void setPostId(Long postId)
  40. {
  41. this.postId = postId;
  42. }
  43. @NotBlank(message = "岗位编码不能为空")
  44. @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
  45. public String getPostCode()
  46. {
  47. return postCode;
  48. }
  49. public void setPostCode(String postCode)
  50. {
  51. this.postCode = postCode;
  52. }
  53. @NotBlank(message = "岗位名称不能为空")
  54. @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
  55. public String getPostName()
  56. {
  57. return postName;
  58. }
  59. public void setPostName(String postName)
  60. {
  61. this.postName = postName;
  62. }
  63. @NotNull(message = "显示顺序不能为空")
  64. public Integer getPostSort()
  65. {
  66. return postSort;
  67. }
  68. public void setPostSort(Integer postSort)
  69. {
  70. this.postSort = postSort;
  71. }
  72. public String getStatus()
  73. {
  74. return status;
  75. }
  76. public void setStatus(String status)
  77. {
  78. this.status = status;
  79. }
  80. public boolean isFlag()
  81. {
  82. return flag;
  83. }
  84. public void setFlag(boolean flag)
  85. {
  86. this.flag = flag;
  87. }
  88. @Override
  89. public String toString() {
  90. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  91. .append("postId", getPostId())
  92. .append("postCode", getPostCode())
  93. .append("postName", getPostName())
  94. .append("postSort", getPostSort())
  95. .append("status", getStatus())
  96. .append("createBy", getCreateBy())
  97. .append("createTime", getCreateTime())
  98. .append("updateBy", getUpdateBy())
  99. .append("updateTime", getUpdateTime())
  100. .append("remark", getRemark())
  101. .toString();
  102. }
  103. }