StaffResponse.java 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. package com.dk.common.model.response.mst;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  7. import com.dk.common.infrastructure.handler.TimestampTypeHandler;
  8. import com.dk.common.infrastructure.handler.UuidListTypeHandler;
  9. import com.dk.common.infrastructure.handler.UuidTypeHandler;
  10. import com.dk.common.model.pojo.PageInfo;
  11. import com.fasterxml.jackson.annotation.JsonFormat;
  12. import io.swagger.annotations.ApiModel;
  13. import io.swagger.annotations.ApiModelProperty;
  14. import lombok.AllArgsConstructor;
  15. import lombok.Data;
  16. import lombok.EqualsAndHashCode;
  17. import lombok.NoArgsConstructor;
  18. import lombok.experimental.Accessors;
  19. import java.io.Serializable;
  20. import java.time.LocalDateTime;
  21. import java.util.List;
  22. /**
  23. * 员工
  24. */
  25. @Data
  26. @AllArgsConstructor
  27. @NoArgsConstructor
  28. @EqualsAndHashCode(callSuper = true)
  29. @Accessors(chain = true)
  30. @ExportTitle("员工")
  31. @TableName(value = "t_mst_staff", autoResultMap = true)
  32. @ApiModel(value="实体类:员工", description="表名:t_mst_staff")
  33. public class StaffResponse extends PageInfo<StaffResponse> implements Serializable {
  34. /*
  35. * 数据库字段
  36. */
  37. /**
  38. * 员工ID
  39. */
  40. @TableId(value = "staff_id")
  41. @ApiModelProperty(value = "员工ID")
  42. @TableField(typeHandler = UuidTypeHandler.class)
  43. private String staffId;
  44. /**
  45. * 员工编码
  46. */
  47. @Excel(name = "员工编码")
  48. @ApiModelProperty(value = "员工编码")
  49. private String staffCode;
  50. /**
  51. * 员工名称
  52. */
  53. @Excel(name = "员工名称")
  54. @ApiModelProperty(value = "员工名称")
  55. private String staffName;
  56. /**
  57. * 员工电话
  58. */
  59. @Excel(name = "员工电话")
  60. @ApiModelProperty(value = "员工电话")
  61. private String staffPhone;
  62. /**
  63. * 员工工种
  64. */
  65. @Excel(name = "微信用户")
  66. @ApiModelProperty(value = "微信用户")
  67. private String wxUserId;
  68. /**
  69. * 组织部门
  70. */
  71. @Excel(name = "组织部门")
  72. @ApiModelProperty(value = "组织部门")
  73. @TableField(typeHandler = UuidTypeHandler.class)
  74. private String orgId;
  75. /**
  76. * 备注
  77. */
  78. @Excel(name = "备注")
  79. @ApiModelProperty(value = "备注")
  80. private String remarks;
  81. /**
  82. * 登录标识
  83. */
  84. @ApiModelProperty(value = "登录标识")
  85. private Boolean flgCanLogin;
  86. /**
  87. * 登录系统 0:PC端,1:移动端,2:PC+移动端
  88. */
  89. @ApiModelProperty(value = "登录系统 0:PC端,1:移动端,2:PC+移动端")
  90. private Integer loginType;
  91. /**
  92. * 有效标识 (1:正常 0:停用)
  93. */
  94. @Excel(name = "有效标识 (1:正常 0:停用)")
  95. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  96. private Boolean flgValid;
  97. /**
  98. * @desc : 角色list
  99. */
  100. @ApiModelProperty(value = "角色list")
  101. @TableField(typeHandler = UuidListTypeHandler.class)
  102. private List<String> roleIds;
  103. /**
  104. * @desc : 角色
  105. */
  106. @ApiModelProperty(value = "员工角色名称")
  107. private String roleNames;
  108. /**
  109. * 企业ID
  110. */
  111. @Excel(name = "企业ID")
  112. @ApiModelProperty(value = "企业ID")
  113. private Integer cpId;
  114. /**
  115. * 企业编码
  116. */
  117. @Excel(name = "企业编码")
  118. @ApiModelProperty(value = "企业编码")
  119. private String cpCode;
  120. /**
  121. * 登录标识1能登录 0不能登录
  122. */
  123. @Excel(name = "登录标识")
  124. @ApiModelProperty(value = "登录标识")
  125. private Integer hrStatus;
  126. /**
  127. * @desc : 登录标识
  128. */
  129. @ApiModelProperty(value = "登录标识")
  130. private String hrStatusName;
  131. /**
  132. * 创建时间 (触发器自动处理)
  133. */
  134. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  135. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  136. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  137. @TableField(typeHandler = TimestampTypeHandler.class)
  138. private LocalDateTime opCreateTime;
  139. /**
  140. * 创建用户 (触发器自动处理)
  141. */
  142. @Excel(name = "创建用户 (触发器自动处理)")
  143. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  144. @TableField(typeHandler = UuidTypeHandler.class)
  145. private String opCreateUserId;
  146. /**
  147. * 修改时间 (触发器自动处理)
  148. */
  149. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  150. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  151. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  152. @TableField(typeHandler = TimestampTypeHandler.class)
  153. private LocalDateTime opUpdateTime;
  154. /**
  155. * 修改用户 (触发器自动处理)
  156. */
  157. @Excel(name = "修改用户 (触发器自动处理)")
  158. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  159. @TableField(typeHandler = UuidTypeHandler.class)
  160. private String opUpdateUserId;
  161. /**
  162. * 数据操作应用 (触发器自动处理)
  163. */
  164. @Excel(name = "数据操作应用 (触发器自动处理)")
  165. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  166. private String opAppCode;
  167. /**
  168. * 数据时间戳 (触发器自动处理)
  169. */
  170. @Excel(name = "数据时间戳 (触发器自动处理)")
  171. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  172. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  173. @TableField(typeHandler = TimestampTypeHandler.class)
  174. private LocalDateTime opTimestamp;
  175. /**
  176. * 数据操作数据库用户 (触发器自动处理)
  177. */
  178. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  179. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  180. private String opDbUser;
  181. /*
  182. * 相关属性
  183. * @TableField(exist = false)
  184. */
  185. @ApiModelProperty(value = "关联工号ID")
  186. private List<Integer> userIds;
  187. /**
  188. * 组织部门名称
  189. */
  190. @Excel(name = "组织部门名称")
  191. @ApiModelProperty(value = "组织部门名称")
  192. private String orgName;
  193. /**
  194. * 员工状态名称
  195. */
  196. @Excel(name = "员工状态名称")
  197. @ApiModelProperty(value = "员工状态名称")
  198. private String staffStatusName;
  199. /**
  200. * 部门全称
  201. */
  202. @Excel(name = "部门全称")
  203. @ApiModelProperty(value = "部门全称")
  204. private String orgLevelName;
  205. @ApiModelProperty(value = "默认仓库id")
  206. private String defaultWhId;
  207. @ApiModelProperty(value = "默认仓库全称")
  208. private String defaultWhName;
  209. @ApiModelProperty(value = "业务部门标识")
  210. private Boolean flgBusiness;
  211. private static final long serialVersionUID = 1L;
  212. }