From 0a37e4d7c53eb76efa3a63774fd4dbdf9e3ecd53 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Mon, 2 Dec 2024 16:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E5=9B=9E=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashier/service/impl/productimpl/TbProductServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java index cc574cfc..149fc7f2 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/service/impl/productimpl/TbProductServiceImpl.java @@ -799,7 +799,7 @@ public class TbProductServiceImpl implements TbProductService { if (item.getUnitId() != null) { if (!unitMap.containsKey(item.getUnitId())) { TbShopUnit tbShopUnit = tbShopUnitRepository.searchUnit(item.getUnitId()); - unitMap.put(item.getId(), tbShopUnit.getName()); + unitMap.put(tbShopUnit.getId(), tbShopUnit.getName()); } item.setUnitName(unitMap.get(item.getUnitId())); }