From 5f37dc3fac7e65e19ea02303243c4fd107f5f5cb Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 14 六月 2024 19:41:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java b/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
index 102a74f..2efebb0 100644
--- a/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
+++ b/cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
@@ -109,13 +109,17 @@
     @PostMapping("/worldCup/getWorldCupStoreListByStoreId")
     public List<WorldCupStoreVO> getWorldCupStoreListByStoreId(@RequestBody Integer storeId){
         List<WorldCupStoreVO> res = new ArrayList<>();
-
-        List<WorldCupStore> storeId1 = worldCupStoreService.list(new QueryWrapper<WorldCupStore>().eq("storeId", storeId));
+        List<WorldCupStore> storeId1 = worldCupStoreService.list(
+                new QueryWrapper<WorldCupStore>()
+                        .eq("storeId", storeId));
         for (WorldCupStore worldCupStore : storeId1) {
             WorldCupStoreVO worldCupStoreVO = new WorldCupStoreVO();
             BeanUtils.copyProperties(worldCupStore,worldCupStoreVO);
             // 查询世界杯活动名称
             WorldCup byId = worldCupService.getById(worldCupStore.getWorldCupId());
+            if (byId.getStatus()==3 || byId.getStatus()==4){
+                continue;
+            }
             worldCupStoreVO.setName(byId.getName());
             res.add(worldCupStoreVO);
         }

--
Gitblit v1.7.1