Browse Source

2026-04-24

CommGroup3 单独调用接口
master
fengyuan_yang 2 months ago
parent
commit
1ff8d9268a
  1. 17
      src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java
  2. 1
      src/main/java/com/spring/modules/part/vo/PartInformationVo.java

17
src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

@ -934,6 +934,13 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
throw new RuntimeException("ifs 库存件修改异常信息:" + updateInventoryPartResponse.get("resultMsg"));
}
}
if (data.getCommGroup3InfoFlag() != null && data.getCommGroup3InfoFlag()) {
PartIfsInventory partIfsInventory = getPartIfsInventory(data); // 主表对象
Map<String, String> modifyCommGroup3Response = inventoryServiceBean.modifyInventoryPartCommGroup3(srv, partIfsInventory);
if (!"200".equals(modifyCommGroup3Response.get("resultCode"))) {
throw new RuntimeException("ifs 库存件CommGroup3修改异常信息:" + modifyCommGroup3Response.get("resultMsg"));
}
}
if (data.getCostsInfoFlag()) {
PartIfsInventoryConfig partIfsInventoryConfig = getPartIfsInventoryConfig(data); // costs对象
// 同步Costs表数据
@ -3062,6 +3069,11 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
throw new RuntimeException("IFS库存件属性新增异常:" + addInventoryPartPropertyResponse.get("resultMsg"));
}
}
// 商品组3的编辑放到最后调用
Map<String, String> modifyCommGroup3Response = inventoryServiceBean.modifyInventoryPartCommGroup3(srv, partIfsInventory);
if (!"200".equals(modifyCommGroup3Response.get("resultCode"))) {
throw new RuntimeException("IFS库存件CommGroup3修改异常:" + modifyCommGroup3Response.get("resultMsg"));
}
}
// 创建 IFS 物料的 BOM Routing
@ -3795,6 +3807,11 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
if (!"200".equals(addInventoryPartLocationResponse.get("resultCode"))) {
throw new RuntimeException("IFS 库存件Location新增异常:" + addInventoryPartLocationResponse.get("resultMsg"));
}
// 商品组3的编辑放到最后调用
Map<String, String> modifyCommGroup3Response = inventoryServiceBean.modifyInventoryPartCommGroup3(srv, partIfsInventory);
if (!"200".equals(modifyCommGroup3Response.get("resultCode"))) {
throw new RuntimeException("IFS库存件CommGroup3修改异常:" + modifyCommGroup3Response.get("resultMsg"));
}
}
} catch (Exception e) {
// 删除库存件关联信息

1
src/main/java/com/spring/modules/part/vo/PartInformationVo.java

@ -175,6 +175,7 @@ public class PartInformationVo extends PartInformationEntity {
private String ifHasPeifang;
private String ifHasBom;
private Boolean mainInfoFlag;
private Boolean commGroup3InfoFlag;
private Boolean costsInfoFlag;
private Boolean manufacturingInfoFlag;
private Boolean planningInfoFlag;

Loading…
Cancel
Save