将切换数据代码移动到MAPPER层

This commit is contained in:
刘名喜 2024-11-28 10:59:40 +08:00
parent f06d14b301
commit 2739b0c695
2 changed files with 4 additions and 1 deletions

View File

@ -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<AP0AE> selectOutNewData();
@DataSource(DataSourceType.SQLSERVER)
int updateOutDataToOld(AP0AE ap0ae);
}

View File

@ -15,7 +15,6 @@ public class AP0AEServiceImpl implements IAP0AEService {
@Autowired
private AP0AEMapper aP0AEMapper;
@DataSource(DataSourceType.SQLSERVER)
@Override
public List<AP0AE> selectOutNewData() {
return this.aP0AEMapper.selectOutNewData();