|
|
@ -1298,6 +1298,9 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public void syncLocationToPLM(LocationInformationVo data) { |
|
|
public void syncLocationToPLM(LocationInformationVo data) { |
|
|
|
|
|
// 查出最大的 rowVersion |
|
|
|
|
|
String rowVersion = routingManagementMapper.getMaxLocationRowVersion(); |
|
|
|
|
|
data.setIfsRowVersion(rowVersion); |
|
|
// 调用接口获得IFS数据 |
|
|
// 调用接口获得IFS数据 |
|
|
String getIfsLocationsURL = apiUrl + "/base/ifs/getIfsLocations"; |
|
|
String getIfsLocationsURL = apiUrl + "/base/ifs/getIfsLocations"; |
|
|
ResponseData getIfsLocationsResponse = HttpClientUtil.doPostByRawWithPLM(getIfsLocationsURL, data); |
|
|
ResponseData getIfsLocationsResponse = HttpClientUtil.doPostByRawWithPLM(getIfsLocationsURL, data); |
|
|
@ -1364,6 +1367,9 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public void syncLaborClassToPLM(PersonnelLevelVo data) { |
|
|
public void syncLaborClassToPLM(PersonnelLevelVo data) { |
|
|
|
|
|
// 查出最大的 rowVersion |
|
|
|
|
|
String rowVersion = routingManagementMapper.getMaxLaborClassRowVersion(); |
|
|
|
|
|
data.setIfsRowVersion(rowVersion); |
|
|
// 调用接口获得IFS数据 |
|
|
// 调用接口获得IFS数据 |
|
|
String getIfsLaborClasssURL = apiUrl + "/base/ifs/getIfsLaborClasss"; |
|
|
String getIfsLaborClasssURL = apiUrl + "/base/ifs/getIfsLaborClasss"; |
|
|
ResponseData getIfsLaborClasssResponse = HttpClientUtil.doPostByRawWithPLM(getIfsLaborClasssURL, data); |
|
|
ResponseData getIfsLaborClasssResponse = HttpClientUtil.doPostByRawWithPLM(getIfsLaborClasssURL, data); |
|
|
@ -1430,6 +1436,9 @@ public class RoutingManagementServiceImpl extends ServiceImpl<RoutingManagementM |
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public void syncWorkCenterToPLM(WorkCenterVo data) { |
|
|
public void syncWorkCenterToPLM(WorkCenterVo data) { |
|
|
|
|
|
// 查出最大的 rowVersion |
|
|
|
|
|
String rowVersion = routingManagementMapper.getMaxWorkCenterRowVersion(); |
|
|
|
|
|
data.setIfsRowVersion(rowVersion); |
|
|
// 调用接口获得IFS数据 |
|
|
// 调用接口获得IFS数据 |
|
|
String getIfsWorkCentersURL = apiUrl + "/base/ifs/getIfsWorkCenterNos"; |
|
|
String getIfsWorkCentersURL = apiUrl + "/base/ifs/getIfsWorkCenterNos"; |
|
|
ResponseData getIfsWorkCentersResponse = HttpClientUtil.doPostByRawWithPLM(getIfsWorkCentersURL, data); |
|
|
ResponseData getIfsWorkCentersResponse = HttpClientUtil.doPostByRawWithPLM(getIfsWorkCentersURL, data); |
|
|
|