SysPost.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.ruoyi.system.domain;
  2. import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import com.ruoyi.common.annotation.ExcelDictFormat;
  8. import com.ruoyi.common.convert.ExcelDictConvert;
  9. import com.ruoyi.common.core.domain.BaseEntity;
  10. import lombok.Data;
  11. import lombok.EqualsAndHashCode;
  12. import javax.validation.constraints.NotBlank;
  13. import javax.validation.constraints.NotNull;
  14. import javax.validation.constraints.Size;
  15. /**
  16. * 岗位表 sys_post
  17. *
  18. * @author Lion Li
  19. */
  20. @Data
  21. @EqualsAndHashCode(callSuper = true)
  22. @TableName("sys_post")
  23. @ExcelIgnoreUnannotated
  24. public class SysPost extends BaseEntity {
  25. /**
  26. * 岗位序号
  27. */
  28. @ExcelProperty(value = "岗位序号")
  29. @TableId(value = "post_id")
  30. private Long postId;
  31. /**
  32. * 岗位编码
  33. */
  34. @ExcelProperty(value = "岗位编码")
  35. @NotBlank(message = "岗位编码不能为空")
  36. @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
  37. private String postCode;
  38. /**
  39. * 岗位名称
  40. */
  41. @ExcelProperty(value = "岗位名称")
  42. @NotBlank(message = "岗位名称不能为空")
  43. @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
  44. private String postName;
  45. /**
  46. * 岗位排序
  47. */
  48. @ExcelProperty(value = "岗位排序")
  49. @NotNull(message = "显示顺序不能为空")
  50. private Integer postSort;
  51. /**
  52. * 状态(0正常 1停用)
  53. */
  54. @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
  55. @ExcelDictFormat(dictType = "sys_normal_disable")
  56. private String status;
  57. /**
  58. * 备注
  59. */
  60. private String remark;
  61. /**
  62. * 用户是否存在此岗位标识 默认不存在
  63. */
  64. @TableField(exist = false)
  65. private boolean flag = false;
  66. }