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/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java | 8 ++++++++
1 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) {
--
Gitblit v1.9.3