Browse Source

ifs 配方 jar代码提交

master
Rui_Li 1 year ago
parent
commit
f6780e6338
  1. 2
      src/main/java/com/spring/ifs/bean/RecipeServiceBean.java
  2. 4
      src/main/java/com/spring/ifs/bean/RecipeServiceBeanTest.java

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

@ -552,7 +552,7 @@ public class RecipeServiceBean {
try{ try{
//查询结果集 //查询结果集
List<RecipeIfsItem> itemList = RecipeApi.getRecipeItems(srv, contract, partNo, engChgLevel, bomType, alternativeNo, lineItemNo); List<RecipeIfsItem> itemList = RecipeApi.getRecipeItems(srv, contract, partNo, engChgLevel, bomType, alternativeNo, lineItemNo);
//
//打印查询出的日志
if(itemList != null && itemList.size() > 0){ if(itemList != null && itemList.size() > 0){
throw new APException("已存在此查Recipe组件信息!"); throw new APException("已存在此查Recipe组件信息!");
} }

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

@ -593,8 +593,8 @@ public class RecipeServiceBeanTest {
Server srv = ifsServer.getIfsServer(username, password); Server srv = ifsServer.getIfsServer(username, password);
//查询结果集 //查询结果集
List<RecipeIfsItem> itemList = RecipeApi.getRecipeItems(srv, contract, partNo, engChgLevel, bomType, alternativeNo, lineItemNo); List<RecipeIfsItem> itemList = RecipeApi.getRecipeItems(srv, contract, partNo, engChgLevel, bomType, alternativeNo, lineItemNo);
//
if(itemList != null || itemList.size() > 0){
//打印查询出的日志
if(itemList != null && itemList.size() > 0){
throw new APException("已存在此查Recipe组件信息!"); throw new APException("已存在此查Recipe组件信息!");
} }
//调用api //调用api

Loading…
Cancel
Save