|
|
|
|
@ -1801,16 +1801,14 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
item.setId(null); |
|
|
|
|
item.setProcessId(dsProcessEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if(CollectionUtils.isEmpty(processProjectList)){ |
|
|
|
|
log.info("零件 {} 没有检验项目数据", newPart.getPartCode()); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
if(!CollectionUtils.isEmpty(processProjectList)){ |
|
|
|
|
boolean processProjectSaveBatch = processProjectService.saveBatch(processProjectList); |
|
|
|
|
if (!processProjectSaveBatch) { |
|
|
|
|
log.error("项目同步失败,oldMesProcessId:{}", oldMesProcessId); |
|
|
|
|
// 继续处理下一个工艺,不中断
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//尺寸量具
|
|
|
|
|
List<DsProcessMeasuringToolEntity> processMeasuringToolList = processMeasuringToolService.selectOldMesByPid(oldMesProcessId); |
|
|
|
|
@ -1818,16 +1816,14 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
item.setId(null); |
|
|
|
|
item.setProcessId(dsProcessEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if(CollectionUtils.isEmpty(processMeasuringToolList)){ |
|
|
|
|
log.info("零件 {} 没有尺寸量具数据", newPart.getPartCode()); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
if(!CollectionUtils.isEmpty(processMeasuringToolList)){ |
|
|
|
|
boolean measuringToolSaveBatch = processMeasuringToolService.saveBatch(processMeasuringToolList); |
|
|
|
|
if (!measuringToolSaveBatch) { |
|
|
|
|
log.error("尺寸量具同步失败,oldMesProcessId:{}", oldMesProcessId); |
|
|
|
|
// 继续处理下一个工艺,不中断
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//工装
|
|
|
|
|
List<DsProcessMoldToolEntity> processMoldToolEntityList = processMoldToolService.selectOldMesByPid(oldMesProcessId); |
|
|
|
|
@ -1835,10 +1831,7 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
item.setId(null); |
|
|
|
|
item.setProcessId(dsProcessEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if(CollectionUtils.isEmpty(processMoldToolEntityList)){ |
|
|
|
|
log.info("零件 {} 没有工装数据", newPart.getPartCode()); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
if(!CollectionUtils.isEmpty(processMoldToolEntityList)){ |
|
|
|
|
boolean processMoldToolSaveBatch = processMoldToolService.saveBatch(processMoldToolEntityList); |
|
|
|
|
if(!processMoldToolSaveBatch){ |
|
|
|
|
log.error("工装同步失败,oldMesProcessId:{}", oldMesProcessId); |
|
|
|
|
@ -1846,6 +1839,8 @@ public class DsTaskingServiceImpl extends BaseServiceImpl<DsTaskingMapper, DsTas |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|