From 0a1533fd30ec1a2f4624ccda4ff11f2535ea8a46 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 11 十二月 2024 18:37:14 +0800
Subject: [PATCH] 修改

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TIndexMenuServiceImpl.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TIndexMenuServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TIndexMenuServiceImpl.java
index 335afec..d7eac65 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TIndexMenuServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TIndexMenuServiceImpl.java
@@ -14,9 +14,7 @@
 import org.springframework.stereotype.Service;
 
 import java.time.LocalDate;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
 
 /**
  * <p>
@@ -34,7 +32,11 @@
 
     @Override
     public List<AllertTitleDto> allert(List<String> cityCode) {
-        List<AllertTitleDto> allert = this.baseMapper.allert(cityCode);
+        List<AllertTitleDto> allert = new ArrayList<>();
+        for (String s : cityCode) {
+            List<AllertTitleDto> allert1 = this.baseMapper.allert(Collections.singletonList(s));
+            allert.addAll(allert1);
+        }
         for (AllertTitleDto allertTitleDto : allert) {
             List<TTitleMajor> tTitleMajors = titleMajorMapper.selectList(Wrappers.lambdaQuery(TTitleMajor.class)
                     .eq(TTitleMajor::getTechnicalId, allertTitleDto.getId()));

--
Gitblit v1.7.1