BaseSafetyTool.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. package com.railway.business.safetool.domain;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.railway.common.annotation.Excel;
  4. import com.railway.common.core.domain.BaseEntity;
  5. import io.swagger.annotations.ApiModel;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import java.util.Date;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import org.hibernate.validator.constraints.Length;
  11. /**
  12. * 安全工具-基础数据
  13. *
  14. * @author wuhonghao 2021-12-01
  15. */
  16. @Data
  17. @ApiModel("安全工具-基础数据")
  18. @EqualsAndHashCode(callSuper = true)
  19. public class BaseSafetyTool extends BaseEntity {
  20. @ApiModelProperty(value = "主键", hidden = true)
  21. private Long toolId;
  22. @ApiModelProperty(value = "送检计划id")
  23. private Long scheduledId;
  24. @ApiModelProperty(value = "送检记录id")
  25. private Long experimentId;
  26. @ApiModelProperty(value = "车间id")
  27. private Long deptId;
  28. @ApiModelProperty(value = "车间名称")
  29. @Excel(name = "车间名称")
  30. private String deptName;
  31. @ApiModelProperty(value = "存放处所")
  32. @Excel(name = "存放处所")
  33. @Length(min = 1, max = 100, message = "【存放处所】长度必须介于 {min} 和 {max} 之间")
  34. private String storePlace;
  35. @ApiModelProperty(value = "名称")
  36. @Excel(name = "工具名称")
  37. @Length(max = 100, message = "【名称】长度必须介于 {min} 和 {max} 之间")
  38. private String toolName;
  39. @ApiModelProperty(value = "类型(名称字典)")
  40. @Length(max = 10, message = "【类型(名称字典)】长度必须介于 {min} 和 {max} 之间")
  41. private String toolType;
  42. @ApiModelProperty(value = "编号")
  43. @Excel(name = "工具编码")
  44. @Length(min = 1, max = 50, message = "【编号】长度必须介于 {min} 和 {max} 之间")
  45. private String toolCode;
  46. @ApiModelProperty(value = "二维码编码")
  47. @Length(max = 64, message = "【二维码编码】长度必须介于 {min} 和 {max} 之间")
  48. private String toolQcode;
  49. @ApiModelProperty(value = "二维码URL")
  50. @Length(max = 512, message = "【二维码URL】长度必须介于 0 和 {max} 之间")
  51. private String qcodeUrl;
  52. @ApiModelProperty(value = "电压等级")
  53. @Excel(name = "电压等级")
  54. @Length(max = 10, message = "【电压等级】长度必须介于 {min} 和 {max} 之间")
  55. private String elecLevel;
  56. @ApiModelProperty(value = "计量单位")
  57. @Excel(name = "单位")
  58. @Length(max = 10, message = "【单位】长度必须介于 {min} 和 {max} 之间")
  59. private String unit;
  60. @ApiModelProperty(value = "数量")
  61. @Excel(name = "数量")
  62. private Integer amount;
  63. @ApiModelProperty(value = "导出Excel序号")
  64. @Excel(name = "序号")
  65. private Integer seq;
  66. @ApiModelProperty(value = "实验电压")
  67. @Excel(name = "实验电压")
  68. private String testVoltage;
  69. @ApiModelProperty(value = "实验时长(分钟)")
  70. @Excel(name = "实验时长(分钟)")
  71. private Integer testDuration;
  72. @ApiModelProperty(value = "试验周期")
  73. private Integer testCycle;
  74. @ApiModelProperty(value = "试验周期")
  75. @Excel(name = "试验周期")
  76. private String testCycleText;
  77. @ApiModelProperty(value = "上次试验日期")
  78. @Excel(name = "上次试验日期")
  79. @JsonFormat(pattern = "yyyy-MM-dd")
  80. private Date lastTestDate;
  81. @ApiModelProperty(value = "下次试验日期")
  82. @Excel(name = "下次试验日期")
  83. @JsonFormat(pattern = "yyyy-MM-dd")
  84. private Date nextTestDate;
  85. @ApiModelProperty(value = "试验结果(0:失败1:成功)")
  86. @Excel(name = "试验结果")
  87. @Length(max = 1, message = "【试验结果(0:失败1:成功)】长度必须介于 {min} 和 {max} 之间")
  88. private String testResult;
  89. @ApiModelProperty(value = "实际试验时间")
  90. @Excel(name = "实际试验时间")
  91. @JsonFormat(pattern = "yyyy-MM-dd")
  92. private Date testDate;
  93. @ApiModelProperty(value = "试验结果描述")
  94. @Length(max = 255, message = "【试验结果描述】长度必须介于 {min} 和 {max} 之间")
  95. private String testResultDesc;
  96. @ApiModelProperty(value = "实验状态 0:报废 1:待送检 2:已送检 3:已实验 ")
  97. private String testState;
  98. @ApiModelProperty(value = "状态 0:报废 1:正常")
  99. @Excel(name = "状态")
  100. @Length(min = 1, max = 1, message = "【状态 0:报废 1:正常】长度必须介于 {min} 和 {max} 之间")
  101. private String state;
  102. @ApiModelProperty(value = "报废原因")
  103. @Excel(name = "报废原因")
  104. @Length(max = 255, message = "【报废原因】长度必须介于 {min} 和 {max} 之间")
  105. private String scrapReason;
  106. @ApiModelProperty(value = "报废时间")
  107. @Excel(name = "报废时间")
  108. @JsonFormat(pattern = "yyyy-MM-dd")
  109. private Date scrapDate;
  110. @ApiModelProperty(value = "报废操作人")
  111. @Excel(name = "报废操作人")
  112. @Length(max = 20, message = "【报废操作人】长度必须介于 {min} 和 {max} 之间")
  113. private String scrapUser;
  114. @ApiModelProperty(value = "替换工具id")
  115. private Long replaceToolId;
  116. @ApiModelProperty(value = "生产厂家")
  117. @Excel(name = "生产厂家")
  118. @Length(max = 100, message = "【生产厂家】长度必须介于 {min} 和 {max} 之间")
  119. private String produceFactory;
  120. @ApiModelProperty(value = "生产日期")
  121. @Excel(name = "生产日期")
  122. @JsonFormat(pattern = "yyyy-MM-dd")
  123. private Date produceDate;
  124. @ApiModelProperty(value = "del_flag")
  125. private String delFlag;
  126. @ApiModelProperty(value = "要排序的列")
  127. private String orderBy;
  128. @ApiModelProperty(value = "1-ASC 正序排序,0-DESC 倒序排序")
  129. private String isAsc;
  130. public BaseSafetyTool() {
  131. }
  132. }