From e030255c23c7ba3e2cbad1036a810d6d72fa864f Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期四, 26 十月 2023 18:04:58 +0800
Subject: [PATCH] 修改bug

---
 cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java
index f5d791c..a04ed24 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java
@@ -4,6 +4,7 @@
 import cn.hutool.http.HttpResponse;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.dsh.other.entity.*;
 import com.dsh.other.feignclient.account.CityManagerClient;
@@ -35,6 +36,7 @@
 import javax.servlet.http.HttpServletResponse;
 import java.io.PrintWriter;
 import java.util.*;
+import java.util.stream.Collectors;
 
 /**
  * @author zhibing.pu
@@ -391,10 +393,25 @@
             SiteBooking byId = siteBookingService.getById(id);
             Integer storeId = byId.getStoreId();
             Store byId1 = service.getById(storeId);
+            Site site = siteService.getById(byId.getSiteId());
+
+            map.put("siteName",byId1.getName());
+            SiteType siteType = siteTypeService.getById(site.getSiteTypeId());
+            map.put("siteType",siteType.getName());
+            map.put("shopName",byId1.getName());
+            map.put("shopAddress",byId1.getAddress());
+
 
             List<Integer> ids = getIds(byId.getSiteId());
             byId.setStorePhone(byId1.getPhone());
+
+            byId.setSid(Arrays.asList(storeId));
+            List<Site> list = siteService.list(new LambdaQueryWrapper<Site>().eq(Site::getStoreId, storeId).eq(Site::getSign, 1));
+            List<Integer> collect = list.stream().map(Site::getId).collect(Collectors.toList());
+            byId.setRid(collect);
             map.put("data",byId);
+
+
             map.put("ids",ids);
             return ResultUtil.success(map);
         }catch (Exception e){

--
Gitblit v1.7.1