diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseArea.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseArea.java
index dd3537de..ee292d2e 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseArea.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseArea.java
@@ -117,6 +117,17 @@ public class BaseArea extends BaseEntity {
@Excel(name = "工厂编码")
private String factoryCode;
+ /** 删除标志 */
+ @Excel(name = "删除标志")
+ private String delFlag;
+
+ public void setDelFlag(String delFlag) {
+ this.delFlag = delFlag;
+ }
+ public String getDelFlag() {
+ return delFlag;
+ }
+
public void setAreaId(String areaId) {
this.areaId = areaId;
}
@@ -334,6 +345,7 @@ public class BaseArea extends BaseEntity {
.append("activeFlag", getActiveFlag())
.append("remark", getRemark())
.append("factoryCode", getFactoryCode())
+ .append("delFlag", getDelFlag())
.toString();
}
}
diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseAreaMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseAreaMapper.xml
index 2c2034c7..f23cf3ee 100644
--- a/op-modules/op-wms/src/main/resources/mapper/wms/BaseAreaMapper.xml
+++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseAreaMapper.xml
@@ -36,10 +36,11 @@
+
- select area_id, area_code, area_desc, region_code, wh_code, instock_tran_loc, outstock_tran_loc, pick_tran_loc, ex_sign_loc_no, frozen_loc_no, sap_send_spot, area_point, use_tray, tray_mix, instorage_strategy, outstorage_strategy, force_outstorage, loc_pick_flag, allocation_rule, gather_loc_type, priority, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, active_flag, remark, factory_code from base_area
+ select area_id, area_code, area_desc, region_code, wh_code, instock_tran_loc, outstock_tran_loc, pick_tran_loc, ex_sign_loc_no, frozen_loc_no, sap_send_spot, area_point, use_tray, tray_mix, instorage_strategy, outstorage_strategy, force_outstorage, loc_pick_flag, allocation_rule, gather_loc_type, priority, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, active_flag, remark, factory_code,del_flag from base_area
@@ -183,22 +187,29 @@
factory_code = #{factoryCode},
where area_id = #{areaId}
+ and del_flag = '0'
-
- delete from base_area where area_id = #{areaId}
-
+
+ update base_area
+ set del_flag = '1'
+ where area_id = #{areaId}
+
-
- delete from base_area where area_id in
+
+ update base_area
+ set del_flag = '1'
+ where area_id in
#{areaId}
-
+
+
@@ -206,12 +217,14 @@
select area_code
from base_area
where area_code = #{areaCode}
+ and del_flag = '0'
\ No newline at end of file