From d92c02bf884a93742eb322ef50f8395cb7f2fa3a Mon Sep 17 00:00:00 2001
From: liuxiaoxu <1793812695@qq.com>
Date: Fri, 21 Jun 2024 19:11:03 +0800
Subject: [PATCH 1/4] =?UTF-8?q?[fix]=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=20=E7=94=9F=E4=BA=A7=E8=AE=A2=E5=8D=95=20=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=AE=A2=E5=8D=95=E9=A2=86=E6=96=99500?=
=?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/ruoyi/system/controller/SysMakeOrderController.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java
index f09fcdab..a536b003 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java
@@ -146,7 +146,7 @@ public class SysMakeOrderController extends BaseController
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
}
mmap.put("sysMakeOrder", sysMakeOrder);
- return prefix + "/addPick";
+ return prefix + "/addpick";
}
/**
From e7b3ae034d659925c2015d85fe780fa54dd0e709 Mon Sep 17 00:00:00 2001
From: liuxiaoxu <1793812695@qq.com>
Date: Fri, 21 Jun 2024 19:23:30 +0800
Subject: [PATCH 2/4] =?UTF-8?q?[fix]=E9=87=87=E8=B4=AD=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=20=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=20=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E6=8C=89=E9=92=AE=E7=9A=84?=
=?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E6=B7=BB=E5=8A=A0=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2addPurchaseStorage.html?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchaseOrder/addPurchaseStorage.html | 290 ++++++++++++++++++
1 file changed, 290 insertions(+)
create mode 100644 ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html
diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html
new file mode 100644
index 00000000..85306ef0
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html
@@ -0,0 +1,290 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 990b694dc6c26f3e57d938a6f121e7fedbb13afd Mon Sep 17 00:00:00 2001
From: liuxiaoxu <1793812695@qq.com>
Date: Mon, 24 Jun 2024 13:43:08 +0800
Subject: [PATCH 3/4] =?UTF-8?q?[fix]=E9=87=87=E8=B4=AD=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=20=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E9=80=9A=E7=9F=A5?=
=?UTF-8?q?=E5=8D=95=20=E4=BF=AE=E5=A4=8D=E9=87=87=E8=B4=AD=E5=85=A5?=
=?UTF-8?q?=E5=BA=93=E9=80=9A=E7=9F=A5=E5=8D=95=E5=89=8D=E7=AB=AF=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98,=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E9=80=9A=E7=9F=A5?=
=?UTF-8?q?=E5=8D=95=E7=9A=84=E6=9F=A5=E8=AF=A2=E8=AF=AD=E5=8F=A5=20?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E9=80=9A?=
=?UTF-8?q?=E7=9F=A5=E5=8D=95=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E7=9A=84?=
=?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=9F=A5=E8=AF=A2=20=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E9=80=9A=E7=9F=A5=E5=8D=95?=
=?UTF-8?q?=E4=B8=BA=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E5=80=92=E5=8F=99?=
=?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E4=BB=93=E5=BA=93=E5=85=A5=E5=BA=93?=
=?UTF-8?q?=E5=8D=95=E4=B8=BA=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E5=80=92?=
=?UTF-8?q?=E5=8F=99=20=E5=8E=BB=E6=8E=89=E7=94=9F=E4=BA=A7=E8=AE=A2?=
=?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=96=B0=E5=A2=9E,?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=92=8C=E5=88=A0=E9=99=A4=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../impl/PurchaseStorageServiceImpl.java | 24 ++++++++--------
.../mapper/WarehouseStorageOrderMapper.java | 10 +++++++
.../warehouse/WarehouseStorageOrderMapper.xml | 20 ++++++++++++-
.../purchaseStorage/purchaseStorage.html | 28 +++++++++----------
.../templates/system/makeorder/makeorder.html | 18 ++++++------
5 files changed, 65 insertions(+), 35 deletions(-)
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
-
+
+
+
+
+