将切换数据代码移动到MAPPER层
This commit is contained in:
parent
f06d14b301
commit
2739b0c695
@ -1,11 +1,15 @@
|
|||||||
package com.ktg.mes.md.mapper;
|
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 com.ktg.mes.md.domain.AP0AE;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface AP0AEMapper {
|
public interface AP0AEMapper {
|
||||||
|
@DataSource(DataSourceType.SQLSERVER)
|
||||||
List<AP0AE> selectOutNewData();
|
List<AP0AE> selectOutNewData();
|
||||||
|
|
||||||
|
@DataSource(DataSourceType.SQLSERVER)
|
||||||
int updateOutDataToOld(AP0AE ap0ae);
|
int updateOutDataToOld(AP0AE ap0ae);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ public class AP0AEServiceImpl implements IAP0AEService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private AP0AEMapper aP0AEMapper;
|
private AP0AEMapper aP0AEMapper;
|
||||||
|
|
||||||
@DataSource(DataSourceType.SQLSERVER)
|
|
||||||
@Override
|
@Override
|
||||||
public List<AP0AE> selectOutNewData() {
|
public List<AP0AE> selectOutNewData() {
|
||||||
return this.aP0AEMapper.selectOutNewData();
|
return this.aP0AEMapper.selectOutNewData();
|
||||||
|
Loading…
Reference in New Issue
Block a user