From bf2a3c2e40859b16a58d34d52c09a4ade96777af Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期四, 19 十二月 2024 10:02:29 +0800
Subject: [PATCH] 12.18

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

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java
index cfc5e09..98c5dd0 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopPointServiceImpl.java
@@ -40,8 +40,10 @@
         String shopName = shopPoint.getShopName();
         String phone = shopPoint.getPhone();
         String shopLeaderName = shopPoint.getShopLeaderName();
+        Integer shopId = shopPoint.getShopId();
         List<Integer> shopIds = shopService.listObjs(new LambdaQueryWrapper<Shop>()
                         .select(Shop::getId)
+                        .eq(shopId!=null,Shop::getId,shopId)
                         .like(StringUtils.isNotEmpty(shopName), Shop::getName, shopName)
                         .like(StringUtils.isNotEmpty(phone), Shop::getPhone, phone)
                         .like(StringUtils.isNotEmpty(shopLeaderName), Shop::getShopManager, shopLeaderName))

--
Gitblit v1.7.1