From 5f4f16870a9dc67237489f1a6368299ac4967be3 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 19 Sep 2023 17:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/op/wms/domain/BaseSupplier.java | 12 ++++++++++ .../mapper/wms/BaseSupplierMapper.xml | 23 +++++++++++++------ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java index ecb3db804..efcd997df 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseSupplier.java @@ -97,6 +97,17 @@ public class BaseSupplier extends BaseEntity { @Excel(name = "用户自定义3") private String userDefined3; + /** 删除标志 */ + @Excel(name = "删除标志") + private String delFlag; + + public void setDelFlag(String delFlag) { + this.delFlag = delFlag; + } + public String getDelFlag() { + return delFlag; + } + public void setSupplierId(String supplierId) { this.supplierId = supplierId; } @@ -274,6 +285,7 @@ public class BaseSupplier extends BaseEntity { .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) .append("remark", getRemark()) + .append("delFlag", getDelFlag()) .toString(); } } diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml index 1c97b86f5..550136333 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseSupplierMapper.xml @@ -31,10 +31,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select supplier_id, supplier_code, zh_desc, en_desc, supplier_type, account_number, licence_number, business_scope, province, city, area, address, postcode, contact, contact_phone, contact_position, contact_email, active_flag, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, remark from base_supplier + select supplier_id, supplier_code, zh_desc, en_desc, supplier_type, account_number, licence_number, business_scope, province, city, area, address, postcode, contact, contact_phone, contact_position, contact_email, active_flag, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, remark ,del_flag from base_supplier @@ -160,27 +163,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where supplier_id = #{supplierId} - - delete from base_supplier where supplier_id = #{supplierId} - + + update base_supplier + set del_flag = '1' + where supplier_id = #{supplierId} + - - delete from base_supplier where supplier_id in + + update base_supplier + set del_flag = '1' + where supplier_id in #{supplierId} - + \ No newline at end of file