SlSubjectRelation.java 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. package com.zd.smartlock.domain;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.zd.common.core.annotation.Excel;
  4. import com.zd.common.core.web.domain.BaseEntity;
  5. import io.swagger.annotations.ApiModel;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import org.hibernate.validator.constraints.Length;
  8. import java.util.Date;
  9. /**
  10. * 实验室关联对象 sl_subject_relation
  11. *
  12. * @author zd
  13. * @date 2022-09-03
  14. */
  15. @ApiModel("实验室关联")
  16. public class SlSubjectRelation extends BaseEntity
  17. {
  18. private static final long serialVersionUID = 1L;
  19. /** 主键 */
  20. @ApiModelProperty(value = "${comment}")
  21. private Long id;
  22. /** 实验室id */
  23. @Excel(name = "实验室id")
  24. @ApiModelProperty(value = "实验室id")
  25. private Long subjectId;
  26. /** 实验室名称 */
  27. @Excel(name = "实验室名称")
  28. @Length(message = "实验室名称长度不能超过50")
  29. @ApiModelProperty(value = "实验室名称")
  30. private String subjectName;
  31. /** 房间id */
  32. @Excel(name = "房间id")
  33. @Length(message = "房间id长度不能超过255")
  34. @ApiModelProperty(value = "房间id")
  35. private String lockRoomId;
  36. /** 门锁编号 */
  37. @Excel(name = "门锁编号")
  38. @Length(message = "门锁编号长度不能超过255")
  39. @ApiModelProperty(value = "门锁编号")
  40. private String lockCode;
  41. /** 创建时间 */
  42. @JsonFormat(pattern = "yyyy-MM-dd")
  43. @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
  44. @ApiModelProperty(value = "创建时间")
  45. private Date creatTime;
  46. /** 房间位置 */
  47. @Excel(name = "房间位置")
  48. @Length(message = "房间位置长度不能超过255")
  49. @ApiModelProperty(value = "房间位置")
  50. private String roomLocation;
  51. /** 房间名称 */
  52. @Excel(name = "房间名称")
  53. @Length(message = "房间名称长度不能超过255")
  54. @ApiModelProperty(value = "房间名称")
  55. private String roomName;
  56. /** 实验室位置 */
  57. @Excel(name = "实验室位置")
  58. @Length(message = "实验室位置长度不能超过255")
  59. @ApiModelProperty(value = "实验室位置")
  60. private String subjectLocation;
  61. /** 学院 */
  62. @Excel(name = "学院")
  63. @Length(message = "学院长度不能超过255")
  64. @ApiModelProperty(value = "学院")
  65. private String college;
  66. @ApiModelProperty(value = "安全负责人id")
  67. private Long safeUserId;
  68. @ApiModelProperty(value = "安全负责人姓名")
  69. private String safeUserName;
  70. @ApiModelProperty(value = "安全负责人电话")
  71. private String safeUserPhone;
  72. private Long deptId;
  73. private String deptName;
  74. private Long userId;
  75. public Long getId() {
  76. return id;
  77. }
  78. public void setId(Long id) {
  79. this.id = id;
  80. }
  81. public Long getSubjectId() {
  82. return subjectId;
  83. }
  84. public void setSubjectId(Long subjectId) {
  85. this.subjectId = subjectId;
  86. }
  87. public String getSubjectName() {
  88. return subjectName;
  89. }
  90. public void setSubjectName(String subjectName) {
  91. this.subjectName = subjectName;
  92. }
  93. public String getLockRoomId() {
  94. return lockRoomId;
  95. }
  96. public void setLockRoomId(String lockRoomId) {
  97. this.lockRoomId = lockRoomId;
  98. }
  99. public String getLockCode() {
  100. return lockCode;
  101. }
  102. public void setLockCode(String lockCode) {
  103. this.lockCode = lockCode;
  104. }
  105. public Date getCreatTime() {
  106. return creatTime;
  107. }
  108. public void setCreatTime(Date creatTime) {
  109. this.creatTime = creatTime;
  110. }
  111. @Override
  112. public String getDeptName() {
  113. return deptName;
  114. }
  115. @Override
  116. public void setDeptName(String deptName) {
  117. this.deptName = deptName;
  118. }
  119. public String getRoomLocation() { return roomLocation; }
  120. public void setRoomLocation(String roomLocation) { this.roomLocation = roomLocation; }
  121. public String getRoomName() { return roomName; }
  122. public void setRoomName(String roomName) { this.roomName = roomName; }
  123. @Override
  124. public Long getDeptId() { return deptId; }
  125. @Override
  126. public void setDeptId(Long deptId) { this.deptId = deptId; }
  127. @Override
  128. public Long getUserId() { return userId; }
  129. @Override
  130. public void setUserId(Long userId) { this.userId = userId; }
  131. public String getSubjectLocation() { return subjectLocation; }
  132. public void setSubjectLocation(String subjectLocation) { this.subjectLocation = subjectLocation; }
  133. public String getCollege() { return college; }
  134. public void setCollege(String college) {
  135. this.college = college;
  136. }
  137. public Long getSafeUserId() { return safeUserId; }
  138. public void setSafeUserId(Long safeUserId) { this.safeUserId = safeUserId; }
  139. public String getSafeUserName() { return safeUserName; }
  140. public void setSafeUserName(String safeUserName) { this.safeUserName = safeUserName; }
  141. public String getSafeUserPhone() { return safeUserPhone; }
  142. public void setSafeUserPhone(String safeUserPhone) { this.safeUserPhone = safeUserPhone; }
  143. }