|
|
|
@ -1191,10 +1191,11 @@ public class QcServiceImpl implements QcService { |
|
|
|
} |
|
|
|
} else if ("108".equals(partData.getInspectionTypeNo())) { // PQC |
|
|
|
// 同一物料同一类型的模板只能存在一个 |
|
|
|
List<QcTemplateData> paList = pqcMapper.getPartAttribute(partData); |
|
|
|
if (!paList.isEmpty()) { |
|
|
|
throw new RuntimeException("PQC的检验模板只能存在一个!"); |
|
|
|
} |
|
|
|
// List<QcTemplateData> paList = pqcMapper.getPartAttribute(partData); |
|
|
|
// if (!paList.isEmpty()) { |
|
|
|
// throw new RuntimeException("PQC的检验模板只能存在一个!"); |
|
|
|
// } |
|
|
|
partData.setOperation(data.getOperation()); |
|
|
|
// 新增 |
|
|
|
qcMapper.savePartAttributeDetails(partData); |
|
|
|
} |
|
|
|
@ -3592,7 +3593,13 @@ public class QcServiceImpl implements QcService { |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public List<QcPartAttributeData> getOperationDescList(QcPartAttributeData data) { |
|
|
|
List<QcPartAttributeData> list = qcMapper.getOperationDescList(data); |
|
|
|
List<QcPartAttributeData> list; |
|
|
|
if (data.getInspectionTypeNo().equals("108")){ |
|
|
|
list = qcMapper.getPqcOperationDescList(data); |
|
|
|
}else { |
|
|
|
list = qcMapper.getOperationDescList(data); |
|
|
|
} |
|
|
|
|
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
|