|
@@ -9,6 +9,9 @@ import com.jeesite.common.mybatis.annotation.Column;
|
|
|
import com.jeesite.common.mybatis.annotation.JoinTable;
|
|
import com.jeesite.common.mybatis.annotation.JoinTable;
|
|
|
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
|
|
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
|
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
|
|
|
+import com.jeesite.common.utils.excel.annotation.ExcelField;
|
|
|
|
|
+import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
|
|
|
|
+import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 设备维保记录Entity
|
|
* 设备维保记录Entity
|
|
@@ -32,6 +35,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
|
|
@Column(name="spare_part_name", attrName="sparePartName", label="备件名称"),
|
|
@Column(name="spare_part_name", attrName="sparePartName", label="备件名称"),
|
|
|
@Column(name="quantity", attrName="quantity", label="数量"),
|
|
@Column(name="quantity", attrName="quantity", label="数量"),
|
|
|
@Column(name="repair_user", attrName="repairUser", label="维修人", isQuery=true),
|
|
@Column(name="repair_user", attrName="repairUser", label="维修人", isQuery=true),
|
|
|
|
|
+ @Column(name="acceptance_result", attrName="acceptanceResult", label="验收结果"),
|
|
|
@Column(name="remarks", attrName="remarks", label="备注"),
|
|
@Column(name="remarks", attrName="remarks", label="备注"),
|
|
|
@Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
|
|
@Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
|
|
|
@Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false, isUpdateForce=true),
|
|
@Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false, isUpdateForce=true),
|
|
@@ -48,7 +52,9 @@ import com.jeesite.common.mybatis.annotation.Table;
|
|
|
public class MesDeviceMaintenance extends DataEntity<MesDeviceMaintenance> {
|
|
public class MesDeviceMaintenance extends DataEntity<MesDeviceMaintenance> {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
- private String deviceTreeCode; // 设备编码(关联mes_device.tree_code)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ private String deviceTreeCode;
|
|
|
|
|
+ // 设备编码(关联mes_device.tree_code)
|
|
|
private Date maintenanceDate; // 维保日期
|
|
private Date maintenanceDate; // 维保日期
|
|
|
private Date faultTime; // 故障发生时间
|
|
private Date faultTime; // 故障发生时间
|
|
|
private Date resumeProductionTime; // 恢复生产时间
|
|
private Date resumeProductionTime; // 恢复生产时间
|
|
@@ -63,11 +69,32 @@ public class MesDeviceMaintenance extends DataEntity<MesDeviceMaintenance> {
|
|
|
private String sparePartName; // 备件名称
|
|
private String sparePartName; // 备件名称
|
|
|
private Integer quantity; // 数量
|
|
private Integer quantity; // 数量
|
|
|
private String repairUser; // 维修人
|
|
private String repairUser; // 维修人
|
|
|
|
|
+ private String acceptanceResult; // 验收结果
|
|
|
|
|
|
|
|
// JoinTable 关联字段
|
|
// JoinTable 关联字段
|
|
|
private String deviceName; // 设备名称(来自设备结构表 tree_name)
|
|
private String deviceName; // 设备名称(来自设备结构表 tree_name)
|
|
|
private String deviceCode; // 机台号(来自设备结构表 device_code)
|
|
private String deviceCode; // 机台号(来自设备结构表 device_code)
|
|
|
|
|
|
|
|
|
|
+ @ExcelFields({
|
|
|
|
|
+ @ExcelField(title="维保日期", attrName="maintenanceDate", align=Align.CENTER, sort=10),
|
|
|
|
|
+ @ExcelField(title="设备名称", attrName="deviceName", align=Align.CENTER, sort=20),
|
|
|
|
|
+ @ExcelField(title="机台号", attrName="deviceCode", align=Align.CENTER, sort=30),
|
|
|
|
|
+ @ExcelField(title="故障发生时间", attrName="faultTime", align=Align.CENTER, sort=40),
|
|
|
|
|
+ @ExcelField(title="恢复生产时间", attrName="resumeProductionTime", align=Align.CENTER, sort=50),
|
|
|
|
|
+ @ExcelField(title="停机时长", attrName="downtime", align=Align.CENTER, sort=60),
|
|
|
|
|
+ @ExcelField(title="维修开始时间", attrName="repairStartTime", align=Align.CENTER, sort=70),
|
|
|
|
|
+ @ExcelField(title="维修结束时间", attrName="repairEndTime", align=Align.CENTER, sort=80),
|
|
|
|
|
+ @ExcelField(title="维修时长", attrName="repairDuration", align=Align.CENTER, sort=90),
|
|
|
|
|
+ @ExcelField(title="故障现象", attrName="faultPhenomenon", align=Align.CENTER, sort=100),
|
|
|
|
|
+ @ExcelField(title="维修措施", attrName="repairMeasure", align=Align.CENTER, sort=110),
|
|
|
|
|
+ @ExcelField(title="故障类别", attrName="faultCategory", align=Align.CENTER, sort=120),
|
|
|
|
|
+ @ExcelField(title="根本原因分析", attrName="rootCauseAnalysis", align=Align.CENTER, sort=130),
|
|
|
|
|
+ @ExcelField(title="备件名称", attrName="sparePartName", align=Align.CENTER, sort=140),
|
|
|
|
|
+ @ExcelField(title="数量", attrName="quantity", align=Align.CENTER, sort=150),
|
|
|
|
|
+ @ExcelField(title="维修人", attrName="repairUser", align=Align.CENTER, sort=160),
|
|
|
|
|
+ @ExcelField(title="验收结果", attrName="acceptanceResult", align=Align.CENTER, sort=170),
|
|
|
|
|
+ @ExcelField(title="备注", attrName="remarks", align=Align.CENTER, sort=180),
|
|
|
|
|
+ })
|
|
|
public MesDeviceMaintenance() {
|
|
public MesDeviceMaintenance() {
|
|
|
this(null);
|
|
this(null);
|
|
|
}
|
|
}
|
|
@@ -207,6 +234,15 @@ public class MesDeviceMaintenance extends DataEntity<MesDeviceMaintenance> {
|
|
|
this.repairUser = repairUser;
|
|
this.repairUser = repairUser;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Size(min=0, max=100, message="验收结果长度不能超过 100 个字符")
|
|
|
|
|
+ public String getAcceptanceResult() {
|
|
|
|
|
+ return acceptanceResult;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setAcceptanceResult(String acceptanceResult) {
|
|
|
|
|
+ this.acceptanceResult = acceptanceResult;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public String getDeviceName() {
|
|
public String getDeviceName() {
|
|
|
return deviceName;
|
|
return deviceName;
|
|
|
}
|
|
}
|