From f7b8a02843673c19e21b275d1c54e2a778bfedd4 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 08 四月 2026 11:05:41 +0800
Subject: [PATCH] 相同产品型号的生产订单批号需要唯一

---
 src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java b/src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java
index db3e2b3..8a9a973 100644
--- a/src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java
+++ b/src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java
@@ -399,6 +399,8 @@
         String customer = StringUtils.isBlank(stock.getCustomer()) ? "鏃犲鎴�" : stock.getCustomer();
         customerNode.setCustomer(customer);
         customerNode.setLabel(customer);
+        customerNode.setProductionDate(stock.getProductionDate());
+        customerNode.setValidityPeriod(stock.getValidityPeriod());
         customerNode.setNodeType("customer");
         customerNode.setChildren(new ArrayList<>());
 

--
Gitblit v1.9.3