Browse Source

IFS CommGroup3 参数新增和和修改

master
Rui_Li 2 months ago
parent
commit
0d20cc7b6c
  1. 13
      src/main/java/com/spring/ifs/bean/InventoryServiceBean.java

13
src/main/java/com/spring/ifs/bean/InventoryServiceBean.java

@ -998,13 +998,20 @@ public class InventoryServiceBean {
public Map<String, String> modifyInventoryPartCommGroup3(Server srv, PartIfsInventory inData) throws APException { public Map<String, String> modifyInventoryPartCommGroup3(Server srv, PartIfsInventory inData) throws APException {
logger.info("Inventory PartCommGroup3 修改开始:"+JSON.toJSONString(inData)); logger.info("Inventory PartCommGroup3 修改开始:"+JSON.toJSONString(inData));
//公共参数 //公共参数
String contract = inData.getContract();
String partNo = inData.getPartNo();
String commGroup3 = inData.getCommGroup3(); String commGroup3 = inData.getCommGroup3();
String ifsRowId = inData.getIfsRowId();
//获取参数
//获取ifsRowId参数
Map<String, String> partMap = InventoryPartApi.getInventoryPartByPartNo(srv, contract, partNo);
//判断是否需要插入到ifs
if(partMap == null || partMap.isEmpty()) {
throw new APException("域:"+contract+"库存件:"+partNo+"不存在!");
}
String ifsRowId = partMap.get("IFSROWID");
//设置入参信息
Map<String, String> inParam = new HashMap<>(); Map<String, String> inParam = new HashMap<>();
inParam.put("commGroup3", commGroup3); inParam.put("commGroup3", commGroup3);
inParam.put("ifsRowId", ifsRowId); inParam.put("ifsRowId", ifsRowId);
//设置ifsobjVersion 信息
Map<String, String> resultMap = InventoryPartApi.modifyInventoryPartCommGroup3(srv, inParam); Map<String, String> resultMap = InventoryPartApi.modifyInventoryPartCommGroup3(srv, inParam);
//打印日志 //打印日志
logger.info("Inventory Part 修改结束:"+JSON.toJSONString(resultMap)); logger.info("Inventory Part 修改结束:"+JSON.toJSONString(resultMap));

Loading…
Cancel
Save