From 3dd180d33325967bac4211141cdf235ab566c45c Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 17 Apr 2024 14:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=85=AC=E5=8F=B8=E5=9C=B0=E5=9B=BEbu?= =?UTF-8?q?g=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/MeteorologicalinfoServiceImpl.java | 6 ++-- .../dsno2/map/MeteorologicalinfoMapper.xml | 31 ++++++++++--------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/zcloud/service/map/impl/MeteorologicalinfoServiceImpl.java b/src/main/java/com/zcloud/service/map/impl/MeteorologicalinfoServiceImpl.java index df1a3c83..2cbba617 100644 --- a/src/main/java/com/zcloud/service/map/impl/MeteorologicalinfoServiceImpl.java +++ b/src/main/java/com/zcloud/service/map/impl/MeteorologicalinfoServiceImpl.java @@ -234,12 +234,10 @@ public class MeteorologicalinfoServiceImpl implements MeteorologicalinfoService pd.put("OUTSOURCED_ID",pd.getString("CORPINFO_ID")); List getListByCorpinfoId = meteorologicalMapper.listAll(pd); if(getListByCorpinfoId.size() > 0){ - String codes = ""; + List codes = new ArrayList(); for (PageData met : getListByCorpinfoId){ - codes += "'" + met.getString("CODE")+"',"; + codes.add(met.getString("CODE")); } - System.out.println(); - codes = codes.substring(0,codes.length()-1); pd.put("codes",codes); return meteorologicalinfoMapper.listbymeteorologicalByCodes(pd); } diff --git a/src/main/resources/mybatis/dsno2/map/MeteorologicalinfoMapper.xml b/src/main/resources/mybatis/dsno2/map/MeteorologicalinfoMapper.xml index a2b3204c..f878c94d 100644 --- a/src/main/resources/mybatis/dsno2/map/MeteorologicalinfoMapper.xml +++ b/src/main/resources/mybatis/dsno2/map/MeteorologicalinfoMapper.xml @@ -512,22 +512,25 @@