SysPost.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 io.swagger.v3.oas.annotations.media.Schema;
  11. import lombok.Data;
  12. import lombok.EqualsAndHashCode;
  13. import javax.validation.constraints.NotBlank;
  14. import javax.validation.constraints.NotNull;
  15. import javax.validation.constraints.Size;
  16. /**
  17. * 岗位表 sys_post
  18. *
  19. * @author Lion Li
  20. */
  21. @Data
  22. @EqualsAndHashCode(callSuper = true)
  23. @TableName("sys_post")
  24. @ExcelIgnoreUnannotated
  25. @Schema(name = "岗位信息业务对象")
  26. public class SysPost extends BaseEntity {
  27. /**
  28. * 岗位序号
  29. */
  30. @Schema(name = "岗位序号")
  31. @ExcelProperty(value = "岗位序号")
  32. @TableId(value = "post_id")
  33. private Long postId;
  34. /**
  35. * 岗位编码
  36. */
  37. @Schema(name = "岗位编码")
  38. @ExcelProperty(value = "岗位编码")
  39. @NotBlank(message = "岗位编码不能为空")
  40. @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
  41. private String postCode;
  42. /**
  43. * 岗位名称
  44. */
  45. @Schema(name = "岗位名称")
  46. @ExcelProperty(value = "岗位名称")
  47. @NotBlank(message = "岗位名称不能为空")
  48. @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
  49. private String postName;
  50. /**
  51. * 岗位排序
  52. */
  53. @Schema(name = "岗位排序")
  54. @ExcelProperty(value = "岗位排序")
  55. @NotNull(message = "显示顺序不能为空")
  56. private Integer postSort;
  57. /**
  58. * 状态(0正常 1停用)
  59. */
  60. @Schema(name = "状态(0正常 1停用)")
  61. @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
  62. @ExcelDictFormat(dictType = "sys_common_status")
  63. private String status;
  64. /**
  65. * 备注
  66. */
  67. @Schema(name = "备注")
  68. private String remark;
  69. /**
  70. * 用户是否存在此岗位标识 默认不存在
  71. */
  72. @Schema(name = "用户是否存在此岗位标识 默认不存在")
  73. @TableField(exist = false)
  74. private boolean flag = false;
  75. }