Merge branch 'uat-temp-nht-2504270000-46499' into yfai-20250418-dev

yfai-20250418-dev
jason 3 months ago
commit 5d7b0c91cc

@ -78,10 +78,10 @@ public class MesShippingScanSnStrategyServiceImpl implements IMesShippingScanStr
boolean scanFlg = false;
for (MesShippingOrderManagementDetail detail : model.getDetailList()) {
boolean notScan;
if (Objects.equals(model.getSecondShipping(), false)) {
notScan = StringUtils.isEmpty(detail.getBarcode()) && !Objects.equals(detail.getIsScanFlg(), MesCommonConstant.TRUE_INTEGER);
} else {
if (Objects.equals(model.getSecondShipping(), true)) {
notScan = Objects.equals(detail.getSecondScanFlg(), MesCommonConstant.FALSE_INTEGER) && Objects.equals(detail.getBarcode(), model.getSn());
} else {
notScan = StringUtils.isEmpty(detail.getBarcode()) && !Objects.equals(detail.getIsScanFlg(), MesCommonConstant.TRUE_INTEGER);
}
if (detail.getPartNo().equals(produceSn.getPartNo()) && notScan) {
//校验发运明细
@ -93,10 +93,10 @@ public class MesShippingScanSnStrategyServiceImpl implements IMesShippingScanStr
}
}
if (!scanFlg) {
if (Objects.equals(model.getSecondShipping(), false)) {
throw new ImppBusiException(String.format("【%s】此条码对应的【%s】物料号与发运单中物料号不匹配请检查数据", model.getSn(), produceSn.getPartNo()));
if (Objects.equals(model.getSecondShipping(), true)) {
throw new ImppBusiException(String.format("【%s】此条码不在原发运单中,若要通过请强过", model.getSn()));
} else {
throw new ImppBusiException(String.format("【%s】此条码不在原发运单中,若要通过请强过", model.getSn(), produceSn.getPartNo()));
throw new ImppBusiException(String.format("【%s】此条码对应的【%s】物料号与发运单中物料号不匹配请检查数据", model.getSn(), produceSn.getPartNo()));
}
}
model.setMsg(String.format("条码【%s】扫描完成请扫描下一个条码", model.getSn()));
@ -276,7 +276,7 @@ public class MesShippingScanSnStrategyServiceImpl implements IMesShippingScanStr
}
}
if (Objects.equals(model.getSecondShipping(), false)) {
if (!Objects.equals(model.getSecondShipping(), true)) {
orderManagement.setStatus(MesExtEnumUtil.SHIPPING_ORDER_STATUS.SHIPPING.getValue());
}
orderManagement.setSystemSyncStatus(CommonEnumUtil.FALSE);

Loading…
Cancel
Save