Browse Source

添加同步的查询sql修改 BUG修改

master
Rui_Li 11 months ago
parent
commit
c4faae1d73
  1. 2
      src/main/java/com/spring/ifs/bean/BomServiceBean.java
  2. 5
      src/main/java/com/spring/ifs/bean/InventoryServiceBean.java
  3. 2
      src/main/java/com/spring/ifs/bean/RecipeServiceBean.java
  4. 2
      src/main/java/com/spring/ifs/bean/RecipeServiceBeanTest.java

2
src/main/java/com/spring/ifs/bean/BomServiceBean.java

@ -54,7 +54,7 @@ public class BomServiceBean {
Map<String, String> bomMap = BomApi.getBomHeader(srv, contract, partNo, engChgLevel, bomType); Map<String, String> bomMap = BomApi.getBomHeader(srv, contract, partNo, engChgLevel, bomType);
//判断是否需要插入到ifs //判断是否需要插入到ifs
if(bomMap == null || bomMap.size() == 0) { if(bomMap == null || bomMap.size() == 0) {
throw new RuntimeException("Bom不存在!");
throw new APException("Bom不存在!");
} }
//设置ifs 信息 //设置ifs 信息
inData.setIfsRowId(bomMap.get("IFSROWID")); inData.setIfsRowId(bomMap.get("IFSROWID"));

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

@ -744,16 +744,11 @@ public class InventoryServiceBean {
//调用api方法获取事件的编码 //调用api方法获取事件的编码
try{ try{
masterPartMap = MasterPartApi.getMasterPart(srv, partNo); masterPartMap = MasterPartApi.getMasterPart(srv, partNo);
} catch (APException e) {
throw new RuntimeException(e.getMessage());
}
if (masterPartMap == null || masterPartMap.size() == 0) { if (masterPartMap == null || masterPartMap.size() == 0) {
masterPartFlag = true; masterPartFlag = true;
}else { }else {
masterPartFlag = false; masterPartFlag = false;
} }
try{
//调用api方法获取事件的编码 //调用api方法获取事件的编码
Map<String, String> resultMap = InventoryPartApi.getCopyPartEventNo(srv); Map<String, String> resultMap = InventoryPartApi.getCopyPartEventNo(srv);
String eventNo = resultMap.get("EVENT_NO"); String eventNo = resultMap.get("EVENT_NO");

2
src/main/java/com/spring/ifs/bean/RecipeServiceBean.java

@ -52,7 +52,7 @@ public class RecipeServiceBean {
Map<String, String> RecipeMap = RecipeApi.getRecipeHeader(srv, contract, partNo, engChgLevel, bomType); Map<String, String> RecipeMap = RecipeApi.getRecipeHeader(srv, contract, partNo, engChgLevel, bomType);
//判断是否需要插入到ifs //判断是否需要插入到ifs
if(RecipeMap == null || RecipeMap.isEmpty()) { if(RecipeMap == null || RecipeMap.isEmpty()) {
throw new RuntimeException("Recipe不存在!");
throw new APException("Recipe不存在!");
} }
//设置ifs 信息 //设置ifs 信息
inData.setIfsRowId(RecipeMap.get("IFSROWID")); inData.setIfsRowId(RecipeMap.get("IFSROWID"));

2
src/main/java/com/spring/ifs/bean/RecipeServiceBeanTest.java

@ -57,7 +57,7 @@ public class RecipeServiceBeanTest {
Map<String, String> RecipeMap = RecipeApi.getRecipeHeader(srv, contract, partNo, engChgLevel, bomType); Map<String, String> RecipeMap = RecipeApi.getRecipeHeader(srv, contract, partNo, engChgLevel, bomType);
//判断是否需要插入到ifs //判断是否需要插入到ifs
if(RecipeMap == null || RecipeMap.size() == 0) { if(RecipeMap == null || RecipeMap.size() == 0) {
throw new RuntimeException("Recipe不存在!");
throw new APException("Recipe不存在!");
} }
//设置ifs 信息 //设置ifs 信息
inData.setIfsRowId(RecipeMap.get("IFSROWID")); inData.setIfsRowId(RecipeMap.get("IFSROWID"));

Loading…
Cancel
Save