Merge remote-tracking branch 'origin/feature/sap-interface-0804' into feature/sap-interface-0804

This commit is contained in:
2026-09-23 21:00:01 +08:00
3 changed files with 4 additions and 3 deletions

View File

@@ -75,6 +75,7 @@ public class MesApi {
try {
JSONObject requestParam = new JSONObject();
requestParam.put("orderCode",srcBillNo);
log.info("请求MES参数:{},接口地址:{}",requestParam,url);
String resultMsg = HttpRequest.post(url)
.body(requestParam.toJSONString())
.execute().body();

View File

@@ -52,9 +52,9 @@ public class WorkOrderBomItem {
private String DeptCode;
/**
* 反冲料如果是就是1
* 反冲料如果是就是X
*/
private String REEKZ;
private String Reekz;
/**
* 供货库存组织

View File

@@ -416,7 +416,7 @@ public class PdaIosOutServiceImpl implements PdaIosOutService {
for (WorkOrderBomItem bomItem : workOrderBomItems) {
final String materialCode = bomItem.getMaterialCode();
final BigDecimal bomQty = bomItem.getBomQty();
if (bomQty == null || bomQty.intValue() == 0 || !"1".equals(bomItem.getREEKZ())){
if (bomQty == null || bomQty.intValue() == 0 || !"X".equals(bomItem.getReekz())){
continue;
}
boolean hasBom = feedingRecordBoms.stream().anyMatch(i -> Objects.equals(i.getMaterial_code(), bomItem.getMaterialCode()));