|
|
@ -1139,6 +1139,20 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B |
|
|
throw new RuntimeException("IFS BomAlternative修改异常:" + updateBomDetailResponse.get("resultMsg")); |
|
|
throw new RuntimeException("IFS BomAlternative修改异常:" + updateBomDetailResponse.get("resultMsg")); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 2025-05-12 调用下状态的接口 |
|
|
|
|
|
if ("Buildable".equals(data.getStatus())) { // 状态修改为buildable |
|
|
|
|
|
Map<String, String> buildBomDetailResponse = bomServiceBean.buildBomAlternative(srv, bomIfsAlternative); |
|
|
|
|
|
if (!"200".equals(buildBomDetailResponse.get("resultCode"))) { |
|
|
|
|
|
throw new RuntimeException("ifs BomAlternative Build异常:" + buildBomDetailResponse.get("resultMsg")); |
|
|
|
|
|
} |
|
|
|
|
|
} else if ("Obsolete".equals(data.getStatus())) { // 状态修改为Obsolete |
|
|
|
|
|
Map<String, String> retireBomDetailResponse = bomServiceBean.retireBomAlternative(srv, bomIfsAlternative); |
|
|
|
|
|
if (!"200".equals(retireBomDetailResponse.get("resultCode"))) { |
|
|
|
|
|
throw new RuntimeException("ifs BomAlternative Retire异常:" + retireBomDetailResponse.get("resultMsg")); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 同步bomComponent |
|
|
// 同步bomComponent |
|
|
List<BomIfsItem> componentList = bomManagementMapper.getBomComponent(data); |
|
|
List<BomIfsItem> componentList = bomManagementMapper.getBomComponent(data); |
|
|
if (!componentList.isEmpty()) { |
|
|
if (!componentList.isEmpty()) { |
|
|
|