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}