Staff.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. package com.dk.mdm.model.pojo.mst;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.baomidou.mybatisplus.annotation.*;
  4. import java.io.Serializable;
  5. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  6. import com.dk.common.infrastructure.handler.*;
  7. import com.dk.common.model.pojo.PageInfo;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import lombok.Data;
  10. import lombok.AllArgsConstructor;
  11. import lombok.NoArgsConstructor;
  12. import lombok.EqualsAndHashCode;
  13. import lombok.experimental.Accessors;
  14. import io.swagger.annotations.ApiModel;
  15. import io.swagger.annotations.ApiModelProperty;
  16. import com.alibaba.fastjson.JSONObject;
  17. import java.util.List;
  18. import java.time.LocalDateTime;
  19. /**
  20. * 员工
  21. */
  22. @Data
  23. @AllArgsConstructor
  24. @NoArgsConstructor
  25. @EqualsAndHashCode(callSuper = true)
  26. @Accessors(chain = true)
  27. @ExportTitle("员工")
  28. @TableName(value = "t_mst_staff", schema = "dkic_b", autoResultMap = true)
  29. @ApiModel(value="实体类:员工", description="表名:t_mst_staff")
  30. public class Staff extends PageInfo<Staff> implements Serializable {
  31. /*
  32. * 数据库字段
  33. */
  34. /**
  35. * 员工ID
  36. */
  37. @TableId(value = "staff_id", type = IdType.AUTO)
  38. @ApiModelProperty(value = "员工ID")
  39. @TableField(typeHandler = UuidTypeHandler.class)
  40. private String staffId;
  41. /**
  42. * 员工编号
  43. */
  44. @Excel(name = "员工编号")
  45. @ApiModelProperty(value = "员工编号")
  46. private String staffCode;
  47. /**
  48. * 员工名称
  49. */
  50. @Excel(name = "员工名称")
  51. @ApiModelProperty(value = "员工名称")
  52. private String staffName;
  53. /**
  54. * 员工电话 (同步微信用户电话)
  55. */
  56. @Excel(name = "员工电话 (同步微信用户电话)")
  57. @ApiModelProperty(value = "员工电话 (同步微信用户电话)")
  58. private String staffPhone;
  59. /**
  60. * 组织部门
  61. */
  62. @Excel(name = "组织部门")
  63. @ApiModelProperty(value = "组织部门")
  64. @TableField(typeHandler = UuidTypeHandler.class)
  65. private String orgId;
  66. /**
  67. * 角色
  68. */
  69. @Excel(name = "角色")
  70. @ApiModelProperty(value = "角色")
  71. @TableField(typeHandler = UuidListTypeHandler.class)
  72. private List<String> roleIds;
  73. /**
  74. * 微信用户
  75. */
  76. @Excel(name = "微信用户")
  77. @ApiModelProperty(value = "微信用户")
  78. @TableField(typeHandler = UuidTypeHandler.class)
  79. private String wxUserId;
  80. /**
  81. * 备注
  82. */
  83. @Excel(name = "备注")
  84. @ApiModelProperty(value = "备注")
  85. private String remarks;
  86. /**
  87. * 有效标识 (1:正常 0:停用)
  88. */
  89. @Excel(name = "有效标识 (1:正常 0:停用)")
  90. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  91. private Boolean flgValid;
  92. /**
  93. * 企业ID
  94. */
  95. @Excel(name = "企业ID")
  96. @ApiModelProperty(value = "企业ID")
  97. private Integer cpId;
  98. /**
  99. * 创建时间 (触发器自动处理)
  100. */
  101. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  102. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  103. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  104. @TableField(typeHandler = TimestampTypeHandler.class)
  105. private LocalDateTime opCreateTime;
  106. /**
  107. * 创建用户 (触发器自动处理)
  108. */
  109. @Excel(name = "创建用户 (触发器自动处理)")
  110. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  111. @TableField(typeHandler = UuidTypeHandler.class)
  112. private String opCreateUserId;
  113. /**
  114. * 修改时间 (触发器自动处理)
  115. */
  116. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  117. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  118. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  119. @TableField(typeHandler = TimestampTypeHandler.class)
  120. private LocalDateTime opUpdateTime;
  121. /**
  122. * 修改用户 (触发器自动处理)
  123. */
  124. @Excel(name = "修改用户 (触发器自动处理)")
  125. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  126. @TableField(typeHandler = UuidTypeHandler.class)
  127. private String opUpdateUserId;
  128. /**
  129. * 数据操作应用 (触发器自动处理)
  130. */
  131. @Excel(name = "数据操作应用 (触发器自动处理)")
  132. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  133. private String opAppCode;
  134. /**
  135. * 数据时间戳 (触发器自动处理)
  136. */
  137. @Excel(name = "数据时间戳 (触发器自动处理)")
  138. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  139. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  140. @TableField(typeHandler = TimestampTypeHandler.class)
  141. private LocalDateTime opTimestamp;
  142. /**
  143. * 数据操作数据库用户 (触发器自动处理)
  144. */
  145. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  146. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  147. private String opDbUser;
  148. /**
  149. * 登录标识 (统计企业当前人数)
  150. */
  151. @Excel(name = "登录标识 (统计企业当前人数)")
  152. @ApiModelProperty(value = "登录标识 (统计企业当前人数)")
  153. private Boolean flgCanLogin;
  154. /**
  155. * 登录标识1能登录 0不能登录
  156. */
  157. @Excel(name = "登录标识")
  158. @ApiModelProperty(value = "登录标识")
  159. private Integer hrStatus;
  160. /*
  161. * 相关属性
  162. * @TableField(exist = false)
  163. */
  164. /*
  165. * 关联属性 + 查询条件
  166. * @TableField(exist = false)
  167. */
  168. private static final long serialVersionUID = 1L;
  169. }