From ab903aae7196b3c4fcec42eb89fb808fe58f83e8 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 19 Sep 2023 17:02:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/op/wms/domain/BaseShiftsT.java | 12 ++++++++++ .../mapper/wms/BaseShiftsTMapper.xml | 23 +++++++++++++------ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseShiftsT.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseShiftsT.java index cbf8ff264..785d4ba8a 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseShiftsT.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseShiftsT.java @@ -77,6 +77,17 @@ public class BaseShiftsT extends BaseEntity { @Excel(name = "工厂编码") private String siteCode; + /** 删除标志 */ + @Excel(name = "删除标志") + private String delFlag; + + public void setDelFlag(String delFlag) { + this.delFlag = delFlag; + } + public String getDelFlag() { + return delFlag; + } + public void setShiftId(String shiftId) { this.shiftId = shiftId; } @@ -202,6 +213,7 @@ public class BaseShiftsT extends BaseEntity { .append("enterpriseCode", getEnterpriseCode()) .append("siteId", getSiteId()) .append("siteCode", getSiteCode()) + .append("delFlag", getDelFlag()) .toString(); } } diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseShiftsTMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseShiftsTMapper.xml index 7bcf09880..5fee21474 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/BaseShiftsTMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseShiftsTMapper.xml @@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select Shift_Id, Shift_Code, Shift_Desc, Shift_Desc_Global, Shift_Desc_Extended, Shift_Start_Time, Shift_End_Time, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code from base_shifts_t + select Shift_Id, Shift_Code, Shift_Desc, Shift_Desc_Global, Shift_Desc_Extended, Shift_Start_Time, Shift_End_Time, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code, Site_Id, Site_Code,del_flag from base_shifts_t @@ -115,16 +118,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where Shift_Id = #{shiftId} - - delete from base_shifts_t where Shift_Id = #{shiftId} - + + update base_shifts_t + set del_flag = '1' + where Shift_Id = #{shiftId} + - - delete from base_shifts_t where Shift_Id in + + update base_shifts_t + set del_flag = '1' + where Shift_Id in #{shiftId} - + @@ -134,12 +141,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select shift_desc from base_shifts_t where shift_desc = #{shiftDesc} + and del_flag = '0' \ No newline at end of file