|
|
|
@ -114,7 +114,7 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B |
|
|
|
bomIfsHeader.setNoteText(data.getNoteText()); |
|
|
|
Map<String, String> updateBomHeaderResponse = bomServiceBean.modifyBomHeader(srv, bomIfsHeader); |
|
|
|
if (!"200".equals(updateBomHeaderResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("ifs BomHeader修改异常:" + updateBomHeaderResponse.get("resultMsg")); |
|
|
|
throw new RuntimeException("IFS BomHeader修改异常:" + updateBomHeaderResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -144,7 +144,7 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B |
|
|
|
bomIfsHeader.setNoteText(data.getNoteText()); |
|
|
|
Map<String, String> updateBomHeaderResponse = bomServiceBean.modifyBomHeader(srv, bomIfsHeader); |
|
|
|
if (!"200".equals(updateBomHeaderResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("ifs BomHeader修改异常:" + updateBomHeaderResponse.get("resultMsg")); |
|
|
|
throw new RuntimeException("IFS BomHeader修改异常:" + updateBomHeaderResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -699,12 +699,12 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B |
|
|
|
bomIfsItems.add(bomIfsItem); |
|
|
|
Map<String, String> addBomComponentResponse = bomServiceBean.syncBomItems(srv, bomIfsItems); |
|
|
|
if (!"200".equals(addBomComponentResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("ifs BomItem新增异常:" + addBomComponentResponse.get("resultMsg")); |
|
|
|
throw new RuntimeException("IFS BomItem新增异常:" + addBomComponentResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} else { // 修改 |
|
|
|
Map<String, String> updateBomComponentResponse = bomServiceBean.modifyBomItem(srv, bomIfsItem); |
|
|
|
if (!"200".equals(updateBomComponentResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("ifs BomItem修改异常:" + updateBomComponentResponse.get("resultMsg")); |
|
|
|
throw new RuntimeException("IFS BomItem修改异常:" + updateBomComponentResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -847,7 +847,7 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B |
|
|
|
Server srv = getIfsServer(data.getUpdateBy()); |
|
|
|
Map<String, String> deleteBomComponentResponse = bomServiceBean.removeBomItems(srv, bomIfsItems); |
|
|
|
if (!"200".equals(deleteBomComponentResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("ifs BomItem删除异常:" + deleteBomComponentResponse.get("resultMsg")); |
|
|
|
throw new RuntimeException("IFS BomItem删除异常:" + deleteBomComponentResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1350,7 +1350,7 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B |
|
|
|
bomIfsItem.setEngChgLevel(data.getEngChgLevel().toString()); |
|
|
|
bomIfsItem.setBomType(data.getBomType()); |
|
|
|
bomIfsItem.setAlternativeNo(data.getAlternativeNo()); |
|
|
|
Map<String, String> getBomComponentResponse = bomServiceBean.getBomItems(srv, bomIfsItem); |
|
|
|
Map<String, String> getBomComponentResponse = bomServiceBean.getBomItemsForSync(srv, bomIfsItem); |
|
|
|
if (!"200".equals(getBomComponentResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("IFS Bom子物料查询异常:" + getBomComponentResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
|