|
|
|
@ -296,6 +296,22 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
|
if (!"200".equals(updateResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("IFS 物料件编辑异常信息:" + updateResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
|
|
|
|
// 2025-06-03 如果修改了模板 则调用技术等级修改接口 |
|
|
|
if (!mpData.isEmpty() && !mpData.get(0).getCodeNo().equals(data.getCodeNo())) { |
|
|
|
PartIfsCatalogModel partIfsCatalogModel = new PartIfsCatalogModel(); // 模板对象 |
|
|
|
partIfsCatalogModel.setLuName(luName); |
|
|
|
partIfsCatalogModel.setKeyRef("PART_NO=" + data.getPartNo() + "^"); // 物料编码 |
|
|
|
partIfsCatalogModel.setTechnicalSpecNo(technicalSpecNo); |
|
|
|
partIfsCatalogModel.setTechnicalClass(data.getCodeNo()); // 模板编码 |
|
|
|
partIfsCatalogModel.setOkYesNo(okYesNo); |
|
|
|
partIfsCatalogModel.setOkSign(ifsUser.getIfsUsername()); |
|
|
|
partIfsCatalogModel.setDtOk(DateUtils.getStringNow2()); |
|
|
|
Map<String, String> addMasterPartModelResponse = technicalClassBean.modifyTechnicalClass(srv, partIfsCatalogModel); |
|
|
|
if (!"200".equals(addMasterPartModelResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("IFS 物料件模板新增异常:" + addMasterPartModelResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -310,10 +326,12 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
|
String partNo = inData.getPartNo(); |
|
|
|
String codeNo = inData.getCodeNo() == null ? "" : inData.getCodeNo(); |
|
|
|
String functionType = "MP"; |
|
|
|
String partMainGroup = inData.getPartMainGroup(); |
|
|
|
List<Object> params = new ArrayList<>(); |
|
|
|
params.add(partNo); |
|
|
|
params.add(codeNo); |
|
|
|
params.add(functionType); |
|
|
|
params.add(partMainGroup); |
|
|
|
// 执行方法 |
|
|
|
List<Map<String, Object>> resultList = procedureDao.getProcedureData("checkUpdateMasterPart", params); |
|
|
|
return resultList.get(0); |
|
|
|
|