|
|
|
|
@ -1787,6 +1787,7 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
for (DsProcessEntity dsProcessEntity : oldMesProcessList) { |
|
|
|
|
Long oldMesProcessId = dsProcessEntity.getId(); |
|
|
|
|
dsProcessEntity.setId(null); |
|
|
|
|
dsProcessEntity.setCraftId(oldCraft.getId()); |
|
|
|
|
boolean processSave = processService.save(dsProcessEntity); |
|
|
|
|
if (!processSave) { |
|
|
|
|
log.error("工序同步失败,oldMesProcessId:{}", oldMesProcessId); |
|
|
|
|
@ -1796,7 +1797,10 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
// 处理项目尺寸量具
|
|
|
|
|
//项目
|
|
|
|
|
List<DsProcessProjectEntity> processProjectList = processProjectService.selectOldMesByPid(oldMesProcessId); |
|
|
|
|
processProjectList.forEach(item -> item.setId(null)); |
|
|
|
|
processProjectList.forEach(item -> { |
|
|
|
|
item.setId(null); |
|
|
|
|
item.setProcessId(dsProcessEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if(CollectionUtils.isEmpty(processProjectList)){ |
|
|
|
|
log.info("零件 {} 没有检验项目数据", newPart.getPartCode()); |
|
|
|
|
return true; |
|
|
|
|
@ -1810,7 +1814,10 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
|
|
|
|
|
//尺寸量具
|
|
|
|
|
List<DsProcessMeasuringToolEntity> processMeasuringToolList = processMeasuringToolService.selectOldMesByPid(oldMesProcessId); |
|
|
|
|
processMeasuringToolList.forEach(item -> item.setId(null)); |
|
|
|
|
processMeasuringToolList.forEach(item -> { |
|
|
|
|
item.setId(null); |
|
|
|
|
item.setProcessId(dsProcessEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if(CollectionUtils.isEmpty(processMeasuringToolList)){ |
|
|
|
|
log.info("零件 {} 没有尺寸量具数据", newPart.getPartCode()); |
|
|
|
|
return true; |
|
|
|
|
@ -1824,7 +1831,10 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
|
|
|
|
|
//工装
|
|
|
|
|
List<DsProcessMoldToolEntity> processMoldToolEntityList = processMoldToolService.selectOldMesByPid(oldMesProcessId); |
|
|
|
|
processMoldToolEntityList.forEach(item -> item.setId(null)); |
|
|
|
|
processMoldToolEntityList.forEach(item -> { |
|
|
|
|
item.setId(null); |
|
|
|
|
item.setProcessId(dsProcessEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if(CollectionUtils.isEmpty(processMoldToolEntityList)){ |
|
|
|
|
log.info("零件 {} 没有工装数据", newPart.getPartCode()); |
|
|
|
|
return true; |
|
|
|
|
|