Przeglądaj źródła

永湖需求变更

zhangxin 1 rok temu
rodzic
commit
3ba6b1fe13

+ 1 - 1
warewms-ams/src/main/java/com/ruoyi/ams/order/service/impl/WmsDocOrderHeaderServiceImpl.java

@@ -2790,7 +2790,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
         String orderNo = wmsDocOrderHeader.getOrderNo();
         List<InvLotAtt> invLotAttList = invLotAttService.queryInvLotAtt(lineReleaseFrom.getPalletNo());
         List<InvLotAtt> invLotAttFilterList = invLotAttList.stream().filter(item ->
-                CompareUtil.compare(item.getLotatt14(), lineReleaseFrom.getOrderNo()) == 0).collect(Collectors.toList());
+                CompareUtil.compare(item.getLotatt14(), orderNo) == 0).collect(Collectors.toList());
         Assert.isTrue(CollectionUtil.isNotEmpty(invLotAttFilterList), "托盘无出库单备货库存!");
         List<InvLotLocId> invLotLocIdList = invLotLocIdService.queryInvLotLocIdByLotnum(invLotAttFilterList.stream().map(InvLotAtt::getLotnum).collect(Collectors.toList()));
         Assert.isTrue(CollectionUtil.isNotEmpty(invLotLocIdList), "该托盘出库单备货库存已全部出库!");