update qms已完成质检的可重复生成质检任务

master
yinq 7 days ago
parent ca80f3681a
commit 94829348f9

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

Loading…
Cancel
Save