|
|
|
@ -82,9 +82,10 @@ public class QcPDAServiceImpl implements IQcPDAService {
|
|
|
|
|
}
|
|
|
|
|
QcInspectionMainBo selectMain = new QcInspectionMainBo();
|
|
|
|
|
selectMain.setPlanDetailId(planDetail.getPlanDetailId());
|
|
|
|
|
selectMain.setStatus("0");
|
|
|
|
|
List<QcInspectionMainVo> mainVoList = qcInspectionMainService.queryList(selectMain);
|
|
|
|
|
if (!mainVoList.isEmpty()){
|
|
|
|
|
throw new ServiceException("此生产计划已生成质检任务!");
|
|
|
|
|
throw new ServiceException("此生产计划已生成质检任务且未处理!");
|
|
|
|
|
}
|
|
|
|
|
String materialCode = planDetail.getMaterialCode();
|
|
|
|
|
QcInspectionTemplateBo templateBo = new QcInspectionTemplateBo();
|
|
|
|
|