一公司地图bug修复
parent
086632290b
commit
3dd180d333
|
@ -234,12 +234,10 @@ public class MeteorologicalinfoServiceImpl implements MeteorologicalinfoService
|
||||||
pd.put("OUTSOURCED_ID",pd.getString("CORPINFO_ID"));
|
pd.put("OUTSOURCED_ID",pd.getString("CORPINFO_ID"));
|
||||||
List<PageData> getListByCorpinfoId = meteorologicalMapper.listAll(pd);
|
List<PageData> getListByCorpinfoId = meteorologicalMapper.listAll(pd);
|
||||||
if(getListByCorpinfoId.size() > 0){
|
if(getListByCorpinfoId.size() > 0){
|
||||||
String codes = "";
|
List<String> codes = new ArrayList<String>();
|
||||||
for (PageData met : getListByCorpinfoId){
|
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);
|
pd.put("codes",codes);
|
||||||
return meteorologicalinfoMapper.listbymeteorologicalByCodes(pd);
|
return meteorologicalinfoMapper.listbymeteorologicalByCodes(pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -525,9 +525,12 @@
|
||||||
FROM
|
FROM
|
||||||
bus_meteorologicalinfo f
|
bus_meteorologicalinfo f
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
and f.code in ( #{codes})
|
and f.code in
|
||||||
|
<foreach item="item" index="index" collection="codes" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
f.OPERATTIME DESC
|
f.OPERATTIME DESC
|
||||||
LIMIT 1 ;
|
LIMIT 1
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue