打印修改
This commit is contained in:
@@ -287,7 +287,7 @@ public abstract class PrinterHandler {
|
|||||||
protected List<OrderDetail> getCanPrintOrderDetails(boolean partPrint, Long orderId, List<OrderDetail> tbOrderDetailList, List<?> categoryIds) {
|
protected List<OrderDetail> getCanPrintOrderDetails(boolean partPrint, Long orderId, List<OrderDetail> tbOrderDetailList, List<?> categoryIds) {
|
||||||
List<Long> productIds = tbOrderDetailList.stream().map(OrderDetail::getProductId).collect(Collectors.toList());
|
List<Long> productIds = tbOrderDetailList.stream().map(OrderDetail::getProductId).collect(Collectors.toList());
|
||||||
|
|
||||||
Map<Long, Boolean> canPrintProMap = partPrint || categoryIds.isEmpty() ? new HashMap<>() :
|
Map<Long, Boolean> canPrintProMap = categoryIds.isEmpty() ? new HashMap<>() :
|
||||||
productService.list(new QueryWrapper().in(Product::getCategoryId, categoryIds).in(Product::getId, productIds))
|
productService.list(new QueryWrapper().in(Product::getCategoryId, categoryIds).in(Product::getId, productIds))
|
||||||
.stream().collect(Collectors.toMap(Product::getId, i -> true));
|
.stream().collect(Collectors.toMap(Product::getId, i -> true));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user