diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseEquipment.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseEquipment.java index 22ba6574..446e5a06 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseEquipment.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseEquipment.java @@ -20,342 +20,178 @@ import java.util.List; public class BaseEquipment extends BaseEntity { private static final long serialVersionUID = 1L; - /** - * 设备类型ID - */ + private Long equipmentId; - /** - * 设备编码 - */ @Excel(name = "设备编码") private String equipmentCode; - /** - * 设备名称 - */ @Excel(name = "设备名称") private String equipmentName; - /** - * 品牌 - */ @Excel(name = "品牌") private String equipmentBrand; - /** - * 规格型号 - */ @Excel(name = "规格型号") private String equipmentSpec; - /** - * 设备类型ID - */ @Excel(name = "设备类型ID") private Long equipmentTypeId; - /** - * 设备类型编码 - */ @Excel(name = "设备类型编码") private String equipmentTypeCode; - /** - * 设备类型名称 - */ @Excel(name = "设备类型名称") private String equipmentTypeName; - /** - * 所属车间ID - */ @Excel(name = "所属车间ID") private Long workshopId; - /** - * 所属车间编码 - */ @Excel(name = "所属车间编码") private String workshopCode; - /** - * 所属车间名称 - */ @Excel(name = "所属车间名称") private String workshopName; - /** - * 设备状态 - */ @Excel(name = "设备是否启用") private String status; - /** - * 预留字段1 - */ @Excel(name = "预留字段1") private String attr1; - /** - * 预留字段2 - */ @Excel(name = "预留字段2") private String attr2; - /** - * 预留字段3 - */ @Excel(name = "预留字段3") private Long attr3; - /** - * 预留字段4 - */ @Excel(name = "预留字段4") private Long attr4; - /** - * 单台能力工时 - */ @Excel(name = "单台能力工时") private String unitWorkingHours; - /** - * 工段 - */ @Excel(name = "工段") private String workshopSection; - /** - * 设备位置 - */ @Excel(name = "设备位置") private String equipmentLocation; - /** - * 工时单价 - */ @Excel(name = "工时单价") private String hourlyUnitPrice; //附属字段 - /** - * 成型机存料状态 - */ @Excel(name = "成型机存料状态") private String starving; - /** - * 该成型机存放的物料 - */ @Excel(name = "该成型机存放的物料") private String material; - /** - * 烘房是否开门 - */ @Excel(name = "烘房是否开门") private String isOpen; - /** - * 烘房2门前小车数量 - */ @Excel(name = "烘房2门前小车数量") private String dollyNumber; - /** - * 烘房温度 - */ @Excel(name = "烘房温度") private String temperature; - /** - * 烘房压强 - */ @Excel(name = "烘房压强") private String intensityOfPressure; - /** - * 烘房湿度 - */ @Excel(name = "烘房湿度") private String humidity; - /** - * 烘房状态 - */ @Excel(name = "烘房状态") private String state; - - /** - * 删除标志 - */ + ///////////////////////// @Excel(name = "删除标志") private String delFlag; - /** - * 属性 - */ @Excel(name = "属性") private String property; - /** - * 说明 - */ @Excel(name = "说明") private String explain; - /** - * IP - */ @Excel(name = "IP") private String plcIp; - /** - * 端口号 - */ @Excel(name = "端口号") private String plcPort; - - /** - * SAP资产号 - */ @Excel(name = "SAP资产号") private String sapAsset; - - /** - * 设备条码 - */ @Excel(name = "设备条码") private String equipmentBarcode; - /** - * 设备条码图片 - */ @Excel(name = "设备条码图片") private String equipmentBarcodeImage; - /** - * 生产厂商 - */ @Excel(name = "生产厂商") private String manufacturer; - /** - * 供应商 - */ @Excel(name = "供应商") private String supplier; - /** - * 使用寿命 - */ @Excel(name = "使用寿命") private String useLife; - /** - * 购买时间 - */ @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd") private String buyTime; - /** - * 资产原值 - */ @Excel(name = "资产原值") private String assetOriginalValue; - /** - * 资产净值 - */ @Excel(name = "资产净值") private String netAssetValue; - /** - * 资产负责人 - */ @Excel(name = "资产负责人") private String assetHead; - /** - * 固定资产编码 - */ @Excel(name = "固定资产编码") private String fixedAssetCode; - /** - * 部门 - */ @Excel(name = "部门") private String department; - /** - * 负责人工号 - */ @Excel(name = "负责人工号") private String equipmentHead; - /** - * 工厂号 - */ @Excel(name = "工厂号") private String factoryCode; - /** - * 设备状态 - */ @Excel(name = "设备状态") private String equipmentStatus; - /** - * 设备类别 - */ @Excel(name = "设备类别") private String equipmentCategory; - /** - * 资产分类名称 - */ @Excel(name = "资产分类名称") private String assetClassificationName; - /** - * 资产描述 - */ @Excel(name = "资产描述") private String assetDescription; - /** - * 数量 - */ @Excel(name = "数量") private String equipmentNumber; - /** - * 存货号 - */ @Excel(name = "存货号") private String inventoryNumber; - /** - * 计量单位 - */ @Excel(name = "计量单位") private String unitMeasurement; - //新增SAP字段 - /** - * SAP线体编码 - */ + @Excel(name = "SAP线体编码") private String sapCode; - /** - * SAP线体名称 - */ + + @Excel(name = "SAP线体名称") private String sapName; + @Excel(name = "工厂车间") + private String factoryWorkshop; + private String imageFileList; private String barCodeFileList; @@ -381,100 +217,31 @@ public class BaseEquipment extends BaseEntity { private List selectedEquipmentData; /////////////////////////维修记录 - /** - * 维修单号 - */ - private String workCode; - - /** - * 维修人员 - */ - private String workPerson; - - /** - * 维修组 - */ - private String workTeam; - - /** - * 原因分析 - */ - private String workReason; - - /** - * 故障描述 - */ - private String workFaultDesc; - - /** - * 设备维修措施 - */ - private String repairMeasures; - - /** - * 维修开始时间 - */ - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date workStartTime; - /** - * 维修结束时间 - */ - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private String workCode;//维修单号 + private String workPerson;//维修人员 + private String workTeam;//维修组 + private String workReason;//原因分析 + private String workFaultDesc;//故障描述 + private String repairMeasures;//设备维修措施 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//维修开始时间 + private Date workStartTime; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//维修结束时间 private Date workEndTime; - - /** - * 维修状态 - */ - private String workStatus; + private String workStatus;//维修状态 /////////////////////////保养记录 - /** - * 单号 - */ - private String orderCode; - - /** - * 循环周期 - */ - private String planLoop; - - /** - * 实际开始时间 - */ - @JsonFormat(pattern = "yyyy-MM-dd") + private String orderCode;//单号 + private String planLoop;//循环周期 + @JsonFormat(pattern = "yyyy-MM-dd")//实际开始时间 private Date orderStart; - - /** - * 实际结束时间 - */ - @JsonFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd")//实际结束时间 private Date orderEnd; - - /** - * 工单状态 - */ - private String orderStatus; - - /** - * 工单费用 - */ - private BigDecimal orderCost; - - /** - * 责任人 - */ - private String planPerson; - - /** - * 工单用时 - */ - private String orderCostTime; - - /** - * 签字 - */ - private String orderSignPerson; + private String orderStatus;//工单状态 + private BigDecimal orderCost;//工单费用 + private String planPerson;//责任人 + private String orderCostTime;//工单用时 + private String orderSignPerson;//签字 /////////////////////////////////// public void setOrderCode(String orderCode) { @@ -1153,12 +920,12 @@ public class BaseEquipment extends BaseEntity { } //SAP线体名称 - public void setSapName(String sapName) { - this.sapName = sapName; - } - public String getSapName() { - return sapName; - } + public void setSapName(String sapName) { this.sapName = sapName; } + public String getSapName() { return sapName; } + + //工厂车间 + public void setFactoryWorkshop(String factoryWorkshop) { this.factoryWorkshop = factoryWorkshop; } + public String getFactoryWorkshop() { return factoryWorkshop; } @Override public String toString() { diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseEquipmentMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseEquipmentMapper.xml index 73f685fc..f5bce14a 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/BaseEquipmentMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseEquipmentMapper.xml @@ -56,6 +56,7 @@ + @@ -178,63 +179,43 @@ inventory_number, unit_measurement, sap_code, - sap_name + sap_name, + factory_workshop from base_equipment @@ -325,6 +301,7 @@ unit_measurement, sap_code, sap_name, + factory_workshop, #{equipmentCode}, @@ -369,21 +346,21 @@ #{factoryCode}, #{equipmentStatus}, #{equipmentCategory}, - #{assetClassificationName}, - + #{assetClassificationName}, #{assetDescription}, #{equipmentNumber}, #{inventoryNumber}, #{unitMeasurement}, #{sapCode}, #{sapName}, + #{factoryWorkshop}, update base_equipment - equipment_code = #{equipmentCode}, + equipment_code = #{equipmentCode}, equipment_name = #{equipmentName}, equipment_brand = #{equipmentBrand}, equipment_spec = #{equipmentSpec}, @@ -403,15 +380,12 @@ create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, - unit_working_hours = #{unitWorkingHours}, - - workshop_section = #{workshopSection}, - equipment_location = - #{equipmentLocation}, - - hourly_unit_price = #{hourlyUnitPrice}, - plc_ip = #{plcIp}, - plc_port = #{plcPort}, + unit_working_hours = #{unitWorkingHours}, + workshop_section = #{workshopSection}, + equipment_location = #{equipmentLocation}, + hourly_unit_price = #{hourlyUnitPrice}, + plc_ip = #{plcIp}, + plc_port = #{plcPort}, equipment_barcode = #{equipmentBarcode}, equipment_barcode_image = #{equipmentBarcodeImage}, manufacturer = #{manufacturer}, @@ -428,16 +402,14 @@ factory_code = #{factoryCode}, equipment_status = #{equipmentStatus}, equipment_category = #{equipmentCategory}, - asset_classification_name = - #{assetClassificationName}, - - asset_description = #{assetDescription}, - - equipment_number = #{equipmentNumber}, - inventory_number = #{inventoryNumber}, - unit_measurement = #{unitMeasurement}, - sap_code = #{sapCode}, - sap_name = #{sapName}, + asset_classification_name = #{assetClassificationName}, + asset_description = #{assetDescription}, + equipment_number = #{equipmentNumber}, + inventory_number = #{inventoryNumber}, + unit_measurement = #{unitMeasurement}, + sap_code = #{sapCode}, + sap_name = #{sapName}, + factory_workshop = #{factoryWorkshop}, where equipment_id = #{equipmentId}