fix(工单同步接口):关单不校验BOM
This commit is contained in:
parent
01094ce29e
commit
05a9a62b07
@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.foreverwin.iep.integration.component.Invoke;
|
||||
import com.foreverwin.iep.integration.constant.Msg;
|
||||
import com.foreverwin.iep.integration.domain.InvokeRequest;
|
||||
import com.foreverwin.iep.integration.handler.def.sap.SapUtil;
|
||||
import com.foreverwin.iep.integration.utils.JS;
|
||||
@ -56,10 +57,10 @@ public class SapMaterielReceiveForWorkJob {
|
||||
jsonBody.put("REQ_ID", uuid);
|
||||
jsonBody.put("KEY_VALUE", "itemSync");
|
||||
jsonBody.put("SEND_TIME", nowTime);
|
||||
jsonBody.put("SENDER", "ERP");
|
||||
jsonBody.put("SENDER", Msg.IEP);
|
||||
jsonBody.put("START", nowTime);
|
||||
jsonBody.put("MESSAGE_ID", "SAP_MATERIEL_RECEIVE");
|
||||
jsonBody.put("RECEIVER", "IEP");
|
||||
jsonBody.put("RECEIVER", Msg.ERP);
|
||||
jsonBody.put("RETRY", false);
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("RFC_FUNCTION", "ZPP_MES_MATNR_GET");
|
||||
|
||||
@ -30,10 +30,7 @@ import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.format.DateTimeParseException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 工单同步调用接口
|
||||
@ -289,7 +286,7 @@ public class SapInShopOrder implements HandlerService {
|
||||
int flag = 0;
|
||||
// 工单类型
|
||||
String orderType = customFieldsList.get(0).getOrderType();
|
||||
// 工单类型不校验BOM
|
||||
// 工单类型不校验BOM(保密生产订单)
|
||||
URL.setSite(invokeRequest.getSite()); // 不知道为啥这里需要多设置一步,否则后面查询不到
|
||||
List<SysDictItem> erpShopOrderTypeList = remoteDictService.getDictByType("ERP_SHOP_ORDER_TYPE", SecurityConstants.FROM_IN).getData();
|
||||
if (CollectionUtils.isNotEmpty(erpShopOrderTypeList) && StrUtil.isNotBlank(orderType)) {
|
||||
@ -298,6 +295,10 @@ public class SapInShopOrder implements HandlerService {
|
||||
flag = 1;
|
||||
}
|
||||
}
|
||||
// 关单不校验BOM
|
||||
if (Objects.equals("CLOSED", sapInShopOrderDTO.getShopOrderStatus())) {
|
||||
flag = 1;
|
||||
}
|
||||
if (flag == 0) {
|
||||
// BOM组件信息
|
||||
List<SapInShopOrderBomComponentDTO> bomComponentList = sapInShopOrderDTO.getBomComponentList();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user