SlUserRelation.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package com.zd.smartlock.domain;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.zd.common.core.annotation.Excel;
  5. import io.swagger.annotations.ApiModel;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. import lombok.ToString;
  10. import lombok.experimental.Accessors;
  11. import org.hibernate.validator.constraints.Length;
  12. import com.zd.common.core.web.domain.BaseEntity;
  13. /**
  14. * 人员关联对象 sl_user_relation
  15. *
  16. * @author zd
  17. * @date 2022-09-02
  18. */
  19. @ApiModel("人员关联")
  20. public class SlUserRelation extends BaseEntity
  21. {
  22. private static final long serialVersionUID = 1L;
  23. /** 主键 */
  24. @ApiModelProperty(value = "${comment}")
  25. private Long id;
  26. /** 用户姓名 */
  27. @Excel(name = "用户姓名")
  28. @Length(message = "用户姓名长度不能超过50")
  29. @ApiModelProperty(value = "用户姓名")
  30. private String userName;
  31. /** 门锁服务人员编号 */
  32. @Excel(name = "门锁服务人员编号")
  33. @Length(message = "门锁服务人员编号长度不能超过50")
  34. @ApiModelProperty(value = "门锁服务人员编号")
  35. private String lockUserCode;
  36. /** $column.columnComment */
  37. @Excel(name = "门锁服务人员编号")
  38. @ApiModelProperty(value = "门锁服务人员编号")
  39. private Long type;
  40. /** 创建时间 */
  41. @JsonFormat(pattern = "yyyy-MM-dd")
  42. @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
  43. @ApiModelProperty(value = "创建时间")
  44. private Date creatTime;
  45. public Long getId() {
  46. return id;
  47. }
  48. public void setId(Long id) {
  49. this.id = id;
  50. }
  51. public String getUserName() {
  52. return userName;
  53. }
  54. public void setUserName(String userName) {
  55. this.userName = userName;
  56. }
  57. public String getLockUserCode() {
  58. return lockUserCode;
  59. }
  60. public void setLockUserCode(String lockUserCode) {
  61. this.lockUserCode = lockUserCode;
  62. }
  63. public Long getType() {
  64. return type;
  65. }
  66. public void setType(Long type) {
  67. this.type = type;
  68. }
  69. public Date getCreatTime() {
  70. return creatTime;
  71. }
  72. public void setCreatTime(Date creatTime) {
  73. this.creatTime = creatTime;
  74. }
  75. }