From 082775e3035f37f295f6d394a2a27a2dfee5ff32 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 07 四月 2026 16:27:45 +0800
Subject: [PATCH] 返回uid码

---
 src/main/java/com/ruoyi/production/service/impl/ProductOrderServiceImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/ruoyi/production/service/impl/ProductOrderServiceImpl.java b/src/main/java/com/ruoyi/production/service/impl/ProductOrderServiceImpl.java
index f479a16..0efd3f0 100644
--- a/src/main/java/com/ruoyi/production/service/impl/ProductOrderServiceImpl.java
+++ b/src/main/java/com/ruoyi/production/service/impl/ProductOrderServiceImpl.java
@@ -277,11 +277,11 @@
         }
         // 濡傛灉鏈夋暟鎹厛鍔犲簱瀛�
         ProductOrder productOrder = productOrderMapper.selectById(productOrderDto.getId());
-        if (productOrder != null) {
+        if (productOrder.getDrawMaterials() != null) {
             List<DrawMaterialDto> materialDtoList = JSON.parseArray(productOrder.getDrawMaterials(), DrawMaterialDto.class);
             for (DrawMaterialDto drawMaterialDto : materialDtoList) {
                 stockUtils.addStock(drawMaterialDto.getProductModelId(), drawMaterialDto.getRequisitionQty(), null, productOrderDto.getId(),
-                        drawMaterialDto.getBatchNo(), drawMaterialDto.getCustomer()
+                        drawMaterialDto.getBatchNo(), drawMaterialDto.getCustomer(),drawMaterialDto.getProductionDate()
                 );
             }
         }

--
Gitblit v1.9.3