From cfa7d0a90e7da9b52606ab8fca364fa5bddddcd4 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 28 八月 2025 20:14:15 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java
index 2b5e035..85c5f90 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreConfigController.java
@@ -65,15 +65,16 @@
         try {
             List<StoreConfig> list = storeConfigService.list(new QueryWrapper<StoreConfig>().eq("storeId", storeId)
                     .orderByAsc("sort").eq("isOpen", 1));
-            HomeModule homeModule = homeModuleService.getOne(new QueryWrapper<HomeModule>().eq("isOpen", 1));
+            List<HomeModule> homeModules = homeModuleService.list(new QueryWrapper<HomeModule>().eq("isOpen", 1).eq("storeId",storeId));
             List<StoreConfigVo> listVo = new ArrayList<>();
-            if(null != homeModule){
+            for (HomeModule homeModule : homeModules) {
                 StoreConfigVo vo = new StoreConfigVo();
                 vo.setType(0);
                 vo.setIsOpen(homeModule.getIsOpen());
                 vo.setIsTop(homeModule.getIsTop());
                 vo.setSort(homeModule.getSort());
                 vo.setBackgroundImage(homeModule.getBackgroundImage());
+                vo.setDisplayType(homeModule.getDisplayType());
                 listVo.add(vo);
             }
             for (StoreConfig storeConfig : list) {
@@ -130,6 +131,7 @@
                 storeConfigVo.setBackgroundImage(ToolUtil.isNotEmpty(worldCupStore.getBackgroundImage()) ? worldCupStore.getBackgroundImage() : worldCup.getHomeBackdropImg());
                 storeConfigVo.setType(9);
                 storeConfigVo.setIsOpen(worldCupStore.getIsOpen());
+                storeConfigVo.setDisplayType(worldCupStore.getDisplayType());
                 storeConfigVo.setSort(worldCupStore.getSort());
                 listVo.add(storeConfigVo);
             }

--
Gitblit v1.7.1