From afbda46853803b5fdf5e41abb71858dbfed30b52 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 31 三月 2026 10:59:42 +0800
Subject: [PATCH] 打印销售出库返回uid

---
 src/main/resources/static/sale-outbound.docx                           |    0 
 src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java |    8 ++++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java b/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java
index eedc54f..c32457c 100644
--- a/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java
+++ b/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java
@@ -203,6 +203,13 @@
             if (shippingInfo != null) {
                 product.setShippingStatus(shippingInfo.getStatus());
             }
+            // 鏌ヨ鍏宠仈浜у搧鐨刄ID
+            if (product.getProductModelId() != null) {
+                ProductModel productModel = productModelMapper.selectById(product.getProductModelId());
+                if (productModel != null) {
+                    product.setUidNo(productModel.getUidNo());
+                }
+            }
         }
 
         // 3.鏌ヨ涓婁紶鏂囦欢
@@ -911,6 +918,7 @@
             map.put("taxInclusiveUnitPrice", product.getTaxInclusiveUnitPrice().setScale(2, RoundingMode.HALF_UP).toString());
             map.put("taxInclusiveTotalPrice", product.getTaxInclusiveTotalPrice().setScale(2, RoundingMode.HALF_UP).toString());
             map.put("batchNo", product.getBatchNo());
+            map.put("uidNo", product.getUidNo());
             // 鏌ヨ鍑瘉
             ProductModel productModel = productModelMapper.selectById(product.getProductModelId());
             if (productModel != null) {
diff --git a/src/main/resources/static/sale-outbound.docx b/src/main/resources/static/sale-outbound.docx
index 781a210..6b348a9 100644
--- a/src/main/resources/static/sale-outbound.docx
+++ b/src/main/resources/static/sale-outbound.docx
Binary files differ

--
Gitblit v1.9.3