|
|
|
@ -133,6 +133,10 @@ public class QcServiceImpl implements QcService { |
|
|
|
data.setMethodNo("FQC-" + methodNo); |
|
|
|
} else if ("108".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setMethodNo("PQC-" + methodNo); |
|
|
|
}else if("109".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setMethodNo("SQC-" + methodNo); |
|
|
|
}else if("110".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setMethodNo("OQC-" + methodNo); |
|
|
|
} |
|
|
|
List<QcMethodData> checkMethod = qcMapper.checkMethodOnlyOne(data); |
|
|
|
if (!checkMethod.isEmpty()) { |
|
|
|
@ -212,6 +216,10 @@ public class QcServiceImpl implements QcService { |
|
|
|
data.setItemNo("FQC-" + itemNo); |
|
|
|
} else if ("108".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setItemNo("PQC-" + itemNo); |
|
|
|
}else if("109".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setItemNo("SQC-" + itemNo); |
|
|
|
}else if("110".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setItemNo("OQC-" + itemNo); |
|
|
|
} |
|
|
|
List<QcItemData> checkItemOnlyOne = qcMapper.checkItemOnlyOne(data); |
|
|
|
if (!checkItemOnlyOne.isEmpty()) { |
|
|
|
@ -325,6 +333,10 @@ public class QcServiceImpl implements QcService { |
|
|
|
task.setItemNo("FQC-" + itemNo); |
|
|
|
} else if ("108".equals(task.getInspectionTypeNo())) { |
|
|
|
task.setItemNo("PQC-" + itemNo); |
|
|
|
}else if("109".equals(task.getInspectionTypeNo())) { |
|
|
|
data.setItemNo("SQC-" + itemNo); |
|
|
|
}else if("110".equals(task.getInspectionTypeNo())) { |
|
|
|
data.setItemNo("OQC-" + itemNo); |
|
|
|
} |
|
|
|
task.setItemDesc(row.getCell(0).getStringCellValue()); |
|
|
|
task.setValueType(row.getCell(1).getStringCellValue()); |
|
|
|
@ -528,6 +540,10 @@ public class QcServiceImpl implements QcService { |
|
|
|
data.setTemplateId("FQC-" + templateNo); |
|
|
|
} else if ("108".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setTemplateId("PQC-" + templateNo); |
|
|
|
}else if("109".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setTemplateId("SQC-" + templateNo); |
|
|
|
}else if("110".equals(data.getInspectionTypeNo())) { |
|
|
|
data.setTemplateId("OQC-" + templateNo); |
|
|
|
} |
|
|
|
List<QcTemplateData> checkTemplateOnlyOne = qcMapper.checkTemplateOnlyOne(data); |
|
|
|
if (!checkTemplateOnlyOne.isEmpty()) { |
|
|
|
@ -1237,7 +1253,7 @@ public class QcServiceImpl implements QcService { |
|
|
|
partData.setManufacturerID(null); |
|
|
|
qcMapper.savePartAttributeDetails(partData); |
|
|
|
} |
|
|
|
} else if ("109".equals(partData.getInspectionTypeNo())) { |
|
|
|
} else if ("110".equals(partData.getInspectionTypeNo())) { |
|
|
|
if (data.getCustomerList() != null && !data.getCustomerList().isEmpty()) { |
|
|
|
for (String customer : data.getCustomerList()) { |
|
|
|
partData.setCustomerID(customer); |
|
|
|
@ -1251,7 +1267,7 @@ public class QcServiceImpl implements QcService { |
|
|
|
partData.setCustomerID(null); |
|
|
|
qcMapper.savePartAttributeDetails(partData); |
|
|
|
} |
|
|
|
} else if ("108".equals(partData.getInspectionTypeNo())) { |
|
|
|
} else if ("108".equals(partData.getInspectionTypeNo()) || "109".equals(partData.getInspectionTypeNo())) { |
|
|
|
qcMapper.savePartAttributeDetails(partData); |
|
|
|
} |
|
|
|
} |
|
|
|
|