From 2739b0c6951a3aa2978501e389f056a6e15fa162 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:59:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=88=87=E6=8D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=A7=BB=E5=8A=A8=E5=88=B0MAPPER=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ktg-mes/src/main/java/com/ktg/mes/md/mapper/AP0AEMapper.java | 4 ++++ .../java/com/ktg/mes/md/service/impl/AP0AEServiceImpl.java | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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 8420a33..c0ae759 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 @@ -1,11 +1,15 @@ package com.ktg.mes.md.mapper; +import com.ktg.common.annotation.DataSource; +import com.ktg.common.enums.DataSourceType; import com.ktg.mes.md.domain.AP0AE; import java.util.List; public interface AP0AEMapper { + @DataSource(DataSourceType.SQLSERVER) List selectOutNewData(); + @DataSource(DataSourceType.SQLSERVER) 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 d4bc8eb..f875b27 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 @@ -15,7 +15,6 @@ public class AP0AEServiceImpl implements IAP0AEService { @Autowired private AP0AEMapper aP0AEMapper; - @DataSource(DataSourceType.SQLSERVER) @Override public List selectOutNewData() { return this.aP0AEMapper.selectOutNewData();