|
|
|
@ -79,6 +79,7 @@ public class SapController extends BaseController {
|
|
|
|
|
R<List<Map<String, String>>> dateSources0 = remoteUserService.getPoolNameList(sysUser);
|
|
|
|
|
List<Map<String, String>> dateSources = dateSources0.getData();
|
|
|
|
|
dateSources.forEach(dateSource -> {
|
|
|
|
|
if(!"ds_999".equals(dateSource.get("poolName"))){
|
|
|
|
|
logger.info("++++++++++++" + dateSource.get("poolName") + "++++product同步开始++++++++++");
|
|
|
|
|
DynamicDataSourceContextHolder.push(dateSource.get("poolName"));// 这是数据源的key
|
|
|
|
|
|
|
|
|
@ -96,6 +97,7 @@ public class SapController extends BaseController {
|
|
|
|
|
logger.error("++++++++++++" + dateSource.get("poolName")+"同步product失败,错误信息:"+ r.getMsg());
|
|
|
|
|
}
|
|
|
|
|
logger.error("++++++++++++" + dateSource.get("poolName") + "++++product同步结束++++++++++");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return R.ok();
|
|
|
|
|
}
|
|
|
|
@ -115,6 +117,7 @@ public class SapController extends BaseController {
|
|
|
|
|
R<List<Map<String, String>>> dateSources0 = remoteUserService.getPoolNameList(sysUser);
|
|
|
|
|
List<Map<String, String>> dateSources = dateSources0.getData();
|
|
|
|
|
dateSources.forEach(dateSource -> {
|
|
|
|
|
if(!"ds_999".equals(dateSource.get("poolName"))) {
|
|
|
|
|
logger.info("++++++++++++" + dateSource.get("poolName") + "++++bom同步开始++++++++++");
|
|
|
|
|
DynamicDataSourceContextHolder.push(dateSource.get("poolName"));// 这是数据源的key
|
|
|
|
|
|
|
|
|
@ -132,6 +135,7 @@ public class SapController extends BaseController {
|
|
|
|
|
logger.error("++++++++++++" + dateSource.get("poolName") + "同步bom失败,错误信息:" + r.getMsg());
|
|
|
|
|
}
|
|
|
|
|
logger.error("++++++++++++" + dateSource.get("poolName") + "++++bom同步结束++++++++++");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return R.ok();
|
|
|
|
|
|
|
|
|
@ -152,6 +156,7 @@ public class SapController extends BaseController {
|
|
|
|
|
R<List<Map<String, String>>> dateSources0 = remoteUserService.getPoolNameList(sysUser);
|
|
|
|
|
List<Map<String, String>> dateSources = dateSources0.getData();
|
|
|
|
|
dateSources.forEach(dateSource -> {
|
|
|
|
|
if(!"ds_999".equals(dateSource.get("poolName"))) {
|
|
|
|
|
logger.info("++++++++++++" + dateSource.get("poolName") + "++++工艺同步开始++++++++++");
|
|
|
|
|
DynamicDataSourceContextHolder.push(dateSource.get("poolName"));// 这是数据源的key
|
|
|
|
|
|
|
|
|
@ -170,9 +175,9 @@ public class SapController extends BaseController {
|
|
|
|
|
logger.error("++++++++++++" + dateSource.get("poolName") + "同步工艺失败,错误信息:" + r.getMsg());
|
|
|
|
|
}
|
|
|
|
|
logger.error("++++++++++++" + dateSource.get("poolName") + "++++工艺同步结束++++++++++");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return R.ok();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|