出入库费用登记按钮问题修改;

This commit is contained in:
王奎兴
2026-05-11 09:28:25 +08:00
parent 836e058249
commit 0e0bc88ecf
2 changed files with 2 additions and 2 deletions
@@ -192,7 +192,7 @@ public class StockInOrderApplicationService {
List<StockInOrderPO> stockInOrderPOS = stockInOrderDomainService.queryList(stockInOrderDO);
for (StockInOrderPO stockInOrderPO : stockInOrderPOS) {
Long inOrderId = stockInOrderPO.getInOrderId();
List<ReceiptOrderAccount> list = receiptOrderAccountService.list(new LambdaQueryWrapper<ReceiptOrderAccount>().eq(ReceiptOrderAccount::getOrderId, inOrderId));
List<ReceiptOrderAccount> list = receiptOrderAccountService.list(new LambdaQueryWrapper<ReceiptOrderAccount>().eq(ReceiptOrderAccount::getOrderId, inOrderId).eq(ReceiptOrderAccount::getInOrOut, "in"));
stockInOrderPO.setReceiptOrderAccountList(list);
}
return stockInOrderPOS;
@@ -210,7 +210,7 @@ public class StockOutOrderApplicationService {
Map<Long, List<ReceiptOrderAccount>> accountByOrderId = Collections.emptyMap();
if (!CollectionUtils.isEmpty(orderIds)) {
List<ReceiptOrderAccount> accounts = receiptOrderAccountService.list(
new LambdaQueryWrapper<ReceiptOrderAccount>().in(ReceiptOrderAccount::getOrderId, orderIds));
new LambdaQueryWrapper<ReceiptOrderAccount>().in(ReceiptOrderAccount::getOrderId, orderIds).eq(ReceiptOrderAccount::getInOrOut, "out"));
accountByOrderId = accounts.stream().collect(Collectors.groupingBy(ReceiptOrderAccount::getOrderId));
}