SysPost.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package com.ruoyi.system.domain;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.ruoyi.common.annotation.Excel;
  5. import com.ruoyi.common.annotation.Excel.ColumnType;
  6. import lombok.Data;
  7. import lombok.NoArgsConstructor;
  8. import lombok.experimental.Accessors;
  9. import javax.validation.constraints.NotBlank;
  10. import javax.validation.constraints.Size;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. import java.util.HashMap;
  14. import java.util.Map;
  15. /**
  16. * 岗位表 sys_post
  17. *
  18. * @author ruoyi
  19. */
  20. @Data
  21. @NoArgsConstructor
  22. @Accessors(chain = true)
  23. @TableName("sys_post")
  24. public class SysPost implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26. /**
  27. * 岗位序号
  28. */
  29. @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
  30. @TableId(value = "post_id", type = IdType.AUTO)
  31. private Long postId;
  32. /**
  33. * 岗位编码
  34. */
  35. @Excel(name = "岗位编码")
  36. @NotBlank(message = "岗位编码不能为空")
  37. @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
  38. private String postCode;
  39. /**
  40. * 岗位名称
  41. */
  42. @Excel(name = "岗位名称")
  43. @NotBlank(message = "岗位名称不能为空")
  44. @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
  45. private String postName;
  46. /**
  47. * 岗位排序
  48. */
  49. @Excel(name = "岗位排序")
  50. @NotBlank(message = "显示顺序不能为空")
  51. private String postSort;
  52. /**
  53. * 状态(0正常 1停用)
  54. */
  55. @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  56. private String status;
  57. /**
  58. * 创建者
  59. */
  60. private String createBy;
  61. /**
  62. * 创建时间
  63. */
  64. @TableField(fill = FieldFill.INSERT)
  65. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  66. private Date createTime;
  67. /**
  68. * 更新者
  69. */
  70. private String updateBy;
  71. /**
  72. * 更新时间
  73. */
  74. @TableField(fill = FieldFill.INSERT_UPDATE)
  75. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  76. private Date updateTime;
  77. /**
  78. * 备注
  79. */
  80. private String remark;
  81. /**
  82. * 请求参数
  83. */
  84. @TableField(exist = false)
  85. private Map<String, Object> params = new HashMap<>();
  86. /**
  87. * 用户是否存在此岗位标识 默认不存在
  88. */
  89. @TableField(exist = false)
  90. private boolean flag = false;
  91. }