|
|
@ -713,7 +713,7 @@ public class InventoryServiceBean { |
|
|
* @date 2024/12/9 15:51 |
|
|
* @date 2024/12/9 15:51 |
|
|
* @version 1.0 |
|
|
* @version 1.0 |
|
|
*/ |
|
|
*/ |
|
|
public Map<String, String> syncCopyPartForInventoryPart(Server srv, CopyPart inData) { |
|
|
|
|
|
|
|
|
public Map<String, String> syncCopyPartForInventoryPart(Server srv, CopyPart inData) throws APException { |
|
|
//公共参数 |
|
|
//公共参数 |
|
|
Map<String, String> returnMap = new HashMap<>(); |
|
|
Map<String, String> returnMap = new HashMap<>(); |
|
|
String oriContract = inData.getOriContract(); |
|
|
String oriContract = inData.getOriContract(); |
|
|
@ -734,6 +734,15 @@ public class InventoryServiceBean { |
|
|
String copySPCharacteristics = inData.getCopySPCharacteristics();//对应Sales Part, Characteristics |
|
|
String copySPCharacteristics = inData.getCopySPCharacteristics();//对应Sales Part, Characteristics |
|
|
String copySPDocumentTexts = inData.getCopySPDocumentTexts();//对应Sales Part, Document Texts |
|
|
String copySPDocumentTexts = inData.getCopySPDocumentTexts();//对应Sales Part, Document Texts |
|
|
String copySPLanguageDescription = inData.getCopySPLanguageDescription();//对应Sales Part, Language Description |
|
|
String copySPLanguageDescription = inData.getCopySPLanguageDescription();//对应Sales Part, Language Description |
|
|
|
|
|
boolean masterPartFlag = false; |
|
|
|
|
|
//查询Master Part的信息 |
|
|
|
|
|
Map<String, String> masterPartMap = MasterPartApi.getMasterPart(srv, partNo); |
|
|
|
|
|
if (masterPartMap == null || masterPartMap.size() == 0) { |
|
|
|
|
|
masterPartFlag = true; |
|
|
|
|
|
}else { |
|
|
|
|
|
masterPartFlag = false; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
try{ |
|
|
try{ |
|
|
//调用api方法获取事件的编码 |
|
|
//调用api方法获取事件的编码 |
|
|
Map<String, String> resultMap = InventoryPartApi.getCopyPartEventNo(srv); |
|
|
Map<String, String> resultMap = InventoryPartApi.getCopyPartEventNo(srv); |
|
|
@ -758,7 +767,12 @@ public class InventoryServiceBean { |
|
|
//处理master Part数据都要传 |
|
|
//处理master Part数据都要传 |
|
|
if(copyDesc.indexOf("Part Catalog,") == 0 || copyDesc.indexOf("Part,") == 0) { |
|
|
if(copyDesc.indexOf("Part Catalog,") == 0 || copyDesc.indexOf("Part,") == 0) { |
|
|
//调用api设置成 必传 重复不添加 |
|
|
//调用api设置成 必传 重复不添加 |
|
|
InventoryPartApi.modifyIfsCopyPartItem(srv, ifsRowId, ifsRowVersion, "TRUE", "TRUE"); |
|
|
|
|
|
|
|
|
//如果maste 需要插入数据 |
|
|
|
|
|
if (masterPartFlag) { |
|
|
|
|
|
InventoryPartApi.modifyIfsCopyPartItem(srv, ifsRowId, ifsRowVersion, "TRUE", "TRUE"); |
|
|
|
|
|
}else { |
|
|
|
|
|
InventoryPartApi.modifyIfsCopyPartItem(srv, ifsRowId, ifsRowVersion, "FALSE", "TRUE"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//针对Connected Objects 特殊设置 不确定页面和页签 |
|
|
//针对Connected Objects 特殊设置 不确定页面和页签 |
|
|
//库存件 |
|
|
//库存件 |
|
|
|