MouldMaintain.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. package com.hssx.cloudmodel.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import java.time.LocalDateTime;
  7. import com.baomidou.mybatisplus.annotation.TableField;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import java.io.Serializable;
  10. /**
  11. * <p>
  12. *
  13. * </p>
  14. *
  15. * @author 吴涛涛
  16. * @since 2019-08-13
  17. */
  18. @TableName("tb_mould_maintain")
  19. public class MouldMaintain extends Model<MouldMaintain> {
  20. private static final long serialVersionUID=1L;
  21. @TableId(value = "id", type = IdType.AUTO)
  22. private Integer id;
  23. /**
  24. * 模板id
  25. */
  26. @TableField("mould_id")
  27. private Integer mouldId;
  28. /**
  29. * 保养类型 0-动作 1-易损件
  30. */
  31. @TableField("maintain_type")
  32. private Integer maintainType;
  33. /**
  34. * 方式 0-喷漆 1-检查 2-易损件中选择
  35. */
  36. @TableField("ways")
  37. private Integer ways;
  38. /**
  39. * 文件名称
  40. */
  41. @TableField("file_name")
  42. private String fileName;
  43. /**
  44. * 文件上传路径
  45. */
  46. @TableField("file_url")
  47. private String fileUrl;
  48. /**
  49. * 保养人id
  50. */
  51. @TableField("maintain_user_id")
  52. private Integer maintainUserId;
  53. /**
  54. * 保养人姓名
  55. */
  56. @TableField("maintain_user_name")
  57. private String maintainUserName;
  58. /**
  59. * 保养日期
  60. */
  61. @TableField("indate")
  62. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  63. private LocalDateTime indate;
  64. /**
  65. * 文件大小
  66. */
  67. @TableField("file_size")
  68. private String fileSize;
  69. /**
  70. * 项目id
  71. */
  72. @TableField("project_id")
  73. private Integer projectId;
  74. public Integer getId() {
  75. return id;
  76. }
  77. public void setId(Integer id) {
  78. this.id = id;
  79. }
  80. public Integer getMouldId() {
  81. return mouldId;
  82. }
  83. public void setMouldId(Integer mouldId) {
  84. this.mouldId = mouldId;
  85. }
  86. public Integer getMaintainType() {
  87. return maintainType;
  88. }
  89. public void setMaintainType(Integer maintainType) {
  90. this.maintainType = maintainType;
  91. }
  92. public Integer getWays() {
  93. return ways;
  94. }
  95. public void setWays(Integer ways) {
  96. this.ways = ways;
  97. }
  98. public String getFileName() {
  99. return fileName;
  100. }
  101. public void setFileName(String fileName) {
  102. this.fileName = fileName;
  103. }
  104. public String getFileUrl() {
  105. return fileUrl;
  106. }
  107. public void setFileUrl(String fileUrl) {
  108. this.fileUrl = fileUrl;
  109. }
  110. public Integer getMaintainUserId() {
  111. return maintainUserId;
  112. }
  113. public void setMaintainUserId(Integer maintainUserId) {
  114. this.maintainUserId = maintainUserId;
  115. }
  116. public String getMaintainUserName() {
  117. return maintainUserName;
  118. }
  119. public void setMaintainUserName(String maintainUserName) {
  120. this.maintainUserName = maintainUserName;
  121. }
  122. public LocalDateTime getIndate() {
  123. return indate;
  124. }
  125. public void setIndate(LocalDateTime indate) {
  126. this.indate = indate;
  127. }
  128. public String getFileSize() {
  129. return fileSize;
  130. }
  131. public void setFileSize(String fileSize) {
  132. this.fileSize = fileSize;
  133. }
  134. public Integer getProjectId() {
  135. return projectId;
  136. }
  137. public void setProjectId(Integer projectId) {
  138. this.projectId = projectId;
  139. }
  140. @Override
  141. protected Serializable pkVal() {
  142. return this.id;
  143. }
  144. @Override
  145. public String toString() {
  146. return "MouldMaintain{" +
  147. "id=" + id +
  148. ", mouldId=" + mouldId +
  149. ", maintainType=" + maintainType +
  150. ", ways=" + ways +
  151. ", fileName=" + fileName +
  152. ", fileUrl=" + fileUrl +
  153. ", maintainUserId=" + maintainUserId +
  154. ", maintainUserName=" + maintainUserName +
  155. ", indate=" + indate +
  156. ", fileSize=" + fileSize +
  157. ", projectId=" + projectId +
  158. "}";
  159. }
  160. }