TDevice.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. package com.ruoyi.project.configuration.domain;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.ruoyi.framework.aspectj.lang.annotation.Excel;
  5. import com.ruoyi.framework.web.domain.BaseEntity;
  6. import org.apache.commons.lang3.builder.ToStringBuilder;
  7. import org.apache.commons.lang3.builder.ToStringStyle;
  8. /**
  9. * 设备管理对象 t_device
  10. *
  11. * @author ruoyi
  12. * @date 2021-12-23
  13. */
  14. public class TDevice extends BaseEntity
  15. {
  16. private static final long serialVersionUID = 1L;
  17. /** 唯一标识ID */
  18. private Long id;
  19. /** 装置 */
  20. @Excel(name = "装置")
  21. private String plantCode;
  22. /** 设备名称 */
  23. @Excel(name = "设备名称")
  24. private String devName;
  25. /** 区域 */
  26. @Excel(name = "区域")
  27. private String area;
  28. /** 删除状态 */
  29. private Long delFlag;
  30. /** 创建人 */
  31. @Excel(name = "创建人")
  32. private String createrCode;
  33. /** 创建时间 */
  34. @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
  35. @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
  36. private Date createdate;
  37. /** 修改人 */
  38. @Excel(name = "修改人")
  39. private String updaterCode;
  40. /** 修改时间 */
  41. @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
  42. @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
  43. private Date updatedate;
  44. /** 备注 */
  45. @Excel(name = "备注")
  46. private String remarks;
  47. /** 部门编号 */
  48. private Long deptId;
  49. @Excel(name = "归属部门")
  50. private String deptName;
  51. public void setId(Long id)
  52. {
  53. this.id = id;
  54. }
  55. public Long getId()
  56. {
  57. return id;
  58. }
  59. public void setPlantCode(String plantCode)
  60. {
  61. this.plantCode = plantCode;
  62. }
  63. public String getPlantCode()
  64. {
  65. return plantCode;
  66. }
  67. public void setDevName(String devName)
  68. {
  69. this.devName = devName;
  70. }
  71. public String getDevName()
  72. {
  73. return devName;
  74. }
  75. public void setArea(String area)
  76. {
  77. this.area = area;
  78. }
  79. public String getArea()
  80. {
  81. return area;
  82. }
  83. public void setDelFlag(Long delFlag)
  84. {
  85. this.delFlag = delFlag;
  86. }
  87. public Long getDelFlag()
  88. {
  89. return delFlag;
  90. }
  91. public void setCreaterCode(String createrCode)
  92. {
  93. this.createrCode = createrCode;
  94. }
  95. public String getCreaterCode()
  96. {
  97. return createrCode;
  98. }
  99. public void setCreatedate(Date createdate)
  100. {
  101. this.createdate = createdate;
  102. }
  103. public Date getCreatedate()
  104. {
  105. return createdate;
  106. }
  107. public void setUpdaterCode(String updaterCode)
  108. {
  109. this.updaterCode = updaterCode;
  110. }
  111. public String getUpdaterCode()
  112. {
  113. return updaterCode;
  114. }
  115. public void setUpdatedate(Date updatedate)
  116. {
  117. this.updatedate = updatedate;
  118. }
  119. public Date getUpdatedate()
  120. {
  121. return updatedate;
  122. }
  123. public void setRemarks(String remarks)
  124. {
  125. this.remarks = remarks;
  126. }
  127. public String getRemarks()
  128. {
  129. return remarks;
  130. }
  131. public void setDeptId(Long deptId)
  132. {
  133. this.deptId = deptId;
  134. }
  135. public Long getDeptId()
  136. {
  137. return deptId;
  138. }
  139. public String getDeptName() { return deptName; }
  140. public void setDeptName(String deptName) { this.deptName = deptName; }
  141. @Override
  142. public String toString() {
  143. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  144. .append("id", getId())
  145. .append("plantCode", getPlantCode())
  146. .append("devName", getDevName())
  147. .append("area", getArea())
  148. .append("delFlag", getDelFlag())
  149. .append("createrCode", getCreaterCode())
  150. .append("createdate", getCreatedate())
  151. .append("updaterCode", getUpdaterCode())
  152. .append("updatedate", getUpdatedate())
  153. .append("remarks", getRemarks())
  154. .append("deptId", getDeptId())
  155. .toString();
  156. }
  157. }