将切换数据代码移动到MAPPER层
This commit is contained in:
parent
f06d14b301
commit
2739b0c695
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user