From fede5e6540ca2d88d544e687a739a8fdf6933c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=8D=E5=96=9C?= Date: Thu, 28 Nov 2024 10:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ktg/mes/md/mapper/AP0AEMapper.java | 4 ++-- .../java/com/ktg/mes/md/service/impl/AP0AEServiceImpl.java | 2 +- ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/AP0AEMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/AP0AEMapper.java index dc8d078..8420a33 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/AP0AEMapper.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/AP0AEMapper.java @@ -5,7 +5,7 @@ import com.ktg.mes.md.domain.AP0AE; import java.util.List; public interface AP0AEMapper { - List selectAll(); + List selectOutNewData(); - int update(AP0AE ap0ae); + int updateOutDataToOld(AP0AE ap0ae); } diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/AP0AEServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/AP0AEServiceImpl.java index 519a4d3..a58bf37 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/AP0AEServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/AP0AEServiceImpl.java @@ -18,6 +18,6 @@ public class AP0AEServiceImpl implements IAP0AEService { @DataSource(DataSourceType.SQLSERVER) @Override public List selectAllAP0AE() { - return this.aP0AEMapper.selectAll(); + return this.aP0AEMapper.selectOutNewData(); } } diff --git a/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml b/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml index e6c1be2..482defd 100644 --- a/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml +++ b/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml @@ -104,13 +104,14 @@ from AP0AE - + where UDF07 != 'ED' - + update AP0AE - set UDF07 = #{UDF07} + set UDF07 = 'ED' where AE001 = #{AE001} AND AE002 = #{AE002} AND AE003 = #{AE003}