| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- package com.railway.business.safetool.domain;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.railway.common.annotation.Excel;
- import com.railway.common.core.domain.BaseEntity;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import java.util.Date;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import org.hibernate.validator.constraints.Length;
- /**
- * 安全工具-基础数据
- *
- * @author wuhonghao 2021-12-01
- */
- @Data
- @ApiModel("安全工具-基础数据")
- @EqualsAndHashCode(callSuper = true)
- public class BaseSafetyTool extends BaseEntity {
- @ApiModelProperty(value = "主键", hidden = true)
- private Long toolId;
- @ApiModelProperty(value = "送检计划id")
- private Long scheduledId;
- @ApiModelProperty(value = "送检记录id")
- private Long experimentId;
- @ApiModelProperty(value = "车间id")
- private Long deptId;
- @ApiModelProperty(value = "车间名称")
- @Excel(name = "车间名称")
- private String deptName;
- @ApiModelProperty(value = "存放处所")
- @Excel(name = "存放处所")
- @Length(min = 1, max = 100, message = "【存放处所】长度必须介于 {min} 和 {max} 之间")
- private String storePlace;
- @ApiModelProperty(value = "名称")
- @Excel(name = "工具名称")
- @Length(max = 100, message = "【名称】长度必须介于 {min} 和 {max} 之间")
- private String toolName;
- @ApiModelProperty(value = "类型(名称字典)")
- @Length(max = 10, message = "【类型(名称字典)】长度必须介于 {min} 和 {max} 之间")
- private String toolType;
- @ApiModelProperty(value = "编号")
- @Excel(name = "工具编码")
- @Length(min = 1, max = 50, message = "【编号】长度必须介于 {min} 和 {max} 之间")
- private String toolCode;
- @ApiModelProperty(value = "二维码编码")
- @Length(max = 64, message = "【二维码编码】长度必须介于 {min} 和 {max} 之间")
- private String toolQcode;
- @ApiModelProperty(value = "二维码URL")
- @Length(max = 512, message = "【二维码URL】长度必须介于 0 和 {max} 之间")
- private String qcodeUrl;
- @ApiModelProperty(value = "电压等级")
- @Excel(name = "电压等级")
- @Length(max = 10, message = "【电压等级】长度必须介于 {min} 和 {max} 之间")
- private String elecLevel;
- @ApiModelProperty(value = "计量单位")
- @Excel(name = "单位")
- @Length(max = 10, message = "【单位】长度必须介于 {min} 和 {max} 之间")
- private String unit;
- @ApiModelProperty(value = "数量")
- @Excel(name = "数量")
- private Integer amount;
- @ApiModelProperty(value = "导出Excel序号")
- @Excel(name = "序号")
- private Integer seq;
- @ApiModelProperty(value = "实验电压")
- @Excel(name = "实验电压")
- private String testVoltage;
- @ApiModelProperty(value = "实验时长(分钟)")
- @Excel(name = "实验时长(分钟)")
- private Integer testDuration;
- @ApiModelProperty(value = "试验周期")
- private Integer testCycle;
- @ApiModelProperty(value = "试验周期")
- @Excel(name = "试验周期")
- private String testCycleText;
- @ApiModelProperty(value = "上次试验日期")
- @Excel(name = "上次试验日期")
- @JsonFormat(pattern = "yyyy-MM-dd")
- private Date lastTestDate;
- @ApiModelProperty(value = "下次试验日期")
- @Excel(name = "下次试验日期")
- @JsonFormat(pattern = "yyyy-MM-dd")
- private Date nextTestDate;
- @ApiModelProperty(value = "试验结果(0:失败1:成功)")
- @Excel(name = "试验结果")
- @Length(max = 1, message = "【试验结果(0:失败1:成功)】长度必须介于 {min} 和 {max} 之间")
- private String testResult;
- @ApiModelProperty(value = "实际试验时间")
- @Excel(name = "实际试验时间")
- @JsonFormat(pattern = "yyyy-MM-dd")
- private Date testDate;
- @ApiModelProperty(value = "试验结果描述")
- @Length(max = 255, message = "【试验结果描述】长度必须介于 {min} 和 {max} 之间")
- private String testResultDesc;
- @ApiModelProperty(value = "实验状态 0:报废 1:待送检 2:已送检 3:已实验 ")
- private String testState;
- @ApiModelProperty(value = "状态 0:报废 1:正常")
- @Excel(name = "状态")
- @Length(min = 1, max = 1, message = "【状态 0:报废 1:正常】长度必须介于 {min} 和 {max} 之间")
- private String state;
- @ApiModelProperty(value = "报废原因")
- @Excel(name = "报废原因")
- @Length(max = 255, message = "【报废原因】长度必须介于 {min} 和 {max} 之间")
- private String scrapReason;
- @ApiModelProperty(value = "报废时间")
- @Excel(name = "报废时间")
- @JsonFormat(pattern = "yyyy-MM-dd")
- private Date scrapDate;
- @ApiModelProperty(value = "报废操作人")
- @Excel(name = "报废操作人")
- @Length(max = 20, message = "【报废操作人】长度必须介于 {min} 和 {max} 之间")
- private String scrapUser;
- @ApiModelProperty(value = "替换工具id")
- private Long replaceToolId;
- @ApiModelProperty(value = "生产厂家")
- @Excel(name = "生产厂家")
- @Length(max = 100, message = "【生产厂家】长度必须介于 {min} 和 {max} 之间")
- private String produceFactory;
- @ApiModelProperty(value = "生产日期")
- @Excel(name = "生产日期")
- @JsonFormat(pattern = "yyyy-MM-dd")
- private Date produceDate;
- @ApiModelProperty(value = "del_flag")
- private String delFlag;
- @ApiModelProperty(value = "要排序的列")
- private String orderBy;
- @ApiModelProperty(value = "1-ASC 正序排序,0-DESC 倒序排序")
- private String isAsc;
- public BaseSafetyTool() {
- }
- }
|