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 595dd266..116037f2 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
@@ -93,6 +93,17 @@ public class BaseEquipment extends BaseEntity {
@Excel(name = "工时单价")
private String hourlyUnitPrice;
+ /** 删除标志 */
+ @Excel(name = "删除标志")
+ private String delFlag;
+
+ public void setDelFlag(String delFlag) {
+ this.delFlag = delFlag;
+ }
+ public String getDelFlag() {
+ return delFlag;
+ }
+
public void setEquipmentId(Long equipmentId) {
this.equipmentId = equipmentId;
}
@@ -262,6 +273,7 @@ public class BaseEquipment extends BaseEntity {
.append("workshopSection", getWorkshopSection())
.append("equipmentLocation", getEquipmentLocation())
.append("hourlyUnitPrice", getHourlyUnitPrice())
+ .append("delFlag", getDelFlag())
.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 16258e37..256194e7 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
@@ -30,10 +30,11 @@
+
- select equipment_id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_id, workshop_code, workshop_name, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, workshop_section, equipment_location, hourly_unit_price,unit_working_hours from base_equipment
+ select equipment_id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_id, workshop_code, workshop_name, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, workshop_section, equipment_location, hourly_unit_price,unit_working_hours,del_flag from base_equipment
@@ -153,16 +156,20 @@
where equipment_id = #{equipmentId}
-
- delete from base_equipment where equipment_id = #{equipmentId}
-
+
+ update base_equipment
+ set del_flag = '1'
+ where equipment_id = #{equipmentId}
+
-
- delete from base_equipment where equipment_id in
+
+ update base_equipment
+ set del_flag = '1'
+ where equipment_id in
#{equipmentId}
-
+
\ No newline at end of file