diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseStorageServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseStorageServiceImpl.java index 88d653c4..7aec9541 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseStorageServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseStorageServiceImpl.java @@ -52,14 +52,15 @@ public class PurchaseStorageServiceImpl implements IPurchaseStorageService @Override public List selectPurchaseStorageList(WarehouseStorageOrder warehouseStorageOrder) { - List allWarehouseStorageOrders = warehouseStorageOrderMapper.selectWarehouseStorageOrderList(warehouseStorageOrder); +// List allWarehouseStorageOrders = warehouseStorageOrderMapper.selectWarehouseStorageOrderList(warehouseStorageOrder); List purchaseStorages = new ArrayList<>(); // 使用流过滤出warehouseOrderType为"0"的记录 也就是采购订单 - List filteredWarehouseStorageOrders = allWarehouseStorageOrders.stream() - .filter(s -> "0".equals(s.getWarehouseOrderType())) - .collect(Collectors.toList()); +// List filteredWarehouseStorageOrders = allWarehouseStorageOrders.stream() +// .filter(s -> "0".equals(s.getWarehouseOrderType())) +// .collect(Collectors.toList()); + List allWarehouseStorageOrders = warehouseStorageOrderMapper.selectPurchaseStorageList(warehouseStorageOrder); - for (WarehouseStorageOrder wso : filteredWarehouseStorageOrders) { + for (WarehouseStorageOrder wso : allWarehouseStorageOrders) { PurchaseStorage ps = new PurchaseStorage(); BeanUtils.copyProperties(wso, ps); purchaseStorages.add(ps); @@ -70,13 +71,14 @@ public class PurchaseStorageServiceImpl implements IPurchaseStorageService @Override public List selectWarehouseStorageList(WarehouseStorageOrder warehouseStorageOrder) { // 先获取所有仓储订单列表 - List allWarehouseStorageOrders = warehouseStorageOrderMapper.selectWarehouseStorageOrderList(warehouseStorageOrder); + List allWarehouseStorageOrders = warehouseStorageOrderMapper.selectPurchaseStorageList(warehouseStorageOrder); - // 使用流过滤出warehouseOrderType为"0"的记录 也就是采购订单 - List filteredWarehouseStorageOrders = allWarehouseStorageOrders.stream() - .filter(s -> "0".equals(s.getWarehouseOrderType())) - .collect(Collectors.toList()); - return filteredWarehouseStorageOrders; +// // 使用流过滤出warehouseOrderType为"0"的记录 也就是采购订单 +// List filteredWarehouseStorageOrders = allWarehouseStorageOrders.stream() +// .filter(s -> "0".equals(s.getWarehouseOrderType())) +// .collect(Collectors.toList()); +// return filteredWarehouseStorageOrders; + return allWarehouseStorageOrders; } /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseStorageOrderMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseStorageOrderMapper.java index 760b974a..8c576ef1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseStorageOrderMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseStorageOrderMapper.java @@ -28,6 +28,16 @@ public interface WarehouseStorageOrderMapper */ public List selectWarehouseStorageOrderList(WarehouseStorageOrder warehouseStorageOrder); + + + /** + * 采购入库通知单查询仓库入库单列表 + * + * @param warehouseStorageOrder 仓库入库单 + * @return 仓库入库单集合 + */ + public List selectPurchaseStorageList(WarehouseStorageOrder warehouseStorageOrder); + /** * 新增仓库入库单 * diff --git a/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseStorageOrderMapper.xml b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseStorageOrderMapper.xml index 4b98771e..262bc0f0 100644 --- a/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseStorageOrderMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseStorageOrderMapper.xml @@ -50,8 +50,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and warehouse_employee = #{warehouseEmployee} and create_time between #{params.beginCreateTime} and #{params.endCreateTime} + order by create_time desc - + + + + + - -
  • - - -
  • -
  • - - +
  • -
  • -
  • +
  • + + +
  • + +
  • + + +
  • - @@ -97,8 +98,7 @@ restoreUrl: prefix + "/restore/{id}", exportUrl: prefix + "/export", modalName: "采购入库通知单", - fixedColumns: true, // 启用冻结列 - fixedRightNumber: 1, // 冻结右列个数 + columns: [ {checkbox: true}, {title: '入库单id',field: 'warehouseStorageId',visible: false}, diff --git a/ruoyi-admin/src/main/resources/templates/system/makeorder/makeorder.html b/ruoyi-admin/src/main/resources/templates/system/makeorder/makeorder.html index 1c0c1582..ef301b71 100644 --- a/ruoyi-admin/src/main/resources/templates/system/makeorder/makeorder.html +++ b/ruoyi-admin/src/main/resources/templates/system/makeorder/makeorder.html @@ -78,15 +78,15 @@