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 @@