|
|
@ -219,6 +219,16 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
throw new BaseException("互检任务不合格,不能开始请检查");
|
|
|
|
throw new BaseException("互检任务不合格,不能开始请检查");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//是否完成专检
|
|
|
|
|
|
|
|
QueryWrapper<InspectionTask> queryWrapper=new QueryWrapper<>();
|
|
|
|
|
|
|
|
queryWrapper.eq(InspectionTask.CATEGORY,Constants.INSPECTION_TYPE_P);
|
|
|
|
|
|
|
|
queryWrapper.eq(InspectionTask.SFC,sfc);
|
|
|
|
|
|
|
|
queryWrapper.ne(InspectionTask.STATUS,Constants.INSPECTION_TASK_STATUS_COMPLETE);
|
|
|
|
|
|
|
|
queryWrapper.ne(InspectionTask.RESULT,Constants.RSESULT_OK);
|
|
|
|
|
|
|
|
List<InspectionTask> list = inspectionTaskService.list(queryWrapper);
|
|
|
|
|
|
|
|
if (!list.isEmpty()) {
|
|
|
|
|
|
|
|
throw new BaseException("请完成专检检验任务");
|
|
|
|
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
sfcCrossService.startAction(site, currentRevisionRef.getHandle(), resrce, sfcServiceById.getHandle(), qty);
|
|
|
|
sfcCrossService.startAction(site, currentRevisionRef.getHandle(), resrce, sfcServiceById.getHandle(), qty);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -294,6 +304,9 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_P);
|
|
|
|
paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_P);
|
|
|
|
inspectionTaskService.createTask(paramMap);
|
|
|
|
inspectionTaskService.createTask(paramMap);
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_P);
|
|
|
|
|
|
|
|
inspectionTaskService.createCompleteTask(paramMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//首件创建
|
|
|
|
//首件创建
|
|
|
|
inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc,operation, stepId, Constants.INSPECTION_TYPE_S);
|
|
|
|
inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc,operation, stepId, Constants.INSPECTION_TYPE_S);
|
|
|
|