From b69c8561d91873b0b388c858b43b1e93e322ed97 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 19 Sep 2023 14:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E5=BA=93?= =?UTF-8?q?=E5=8C=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/op/wms/domain/BaseArea.java | 12 +++++++++ .../resources/mapper/wms/BaseAreaMapper.xml | 27 ++++++++++++++----- 2 files changed, 32 insertions(+), 7 deletions(-) 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