一公司地图bug修复
parent
086632290b
commit
3dd180d333
|
@ -234,12 +234,10 @@ public class MeteorologicalinfoServiceImpl implements MeteorologicalinfoService
|
|||
pd.put("OUTSOURCED_ID",pd.getString("CORPINFO_ID"));
|
||||
List<PageData> getListByCorpinfoId = meteorologicalMapper.listAll(pd);
|
||||
if(getListByCorpinfoId.size() > 0){
|
||||
String codes = "";
|
||||
List<String> codes = new ArrayList<String>();
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -512,22 +512,25 @@
|
|||
</select>
|
||||
<select id="listbymeteorologicalByCodes" resultType="pd" parameterType="pd">
|
||||
SELECT
|
||||
f.TEMPERATURE,
|
||||
f.HUMIDITY,
|
||||
f.WINDDIRECTION,
|
||||
f.WINDSPEED,
|
||||
f.ISDELETE,
|
||||
f.OPERATTIME,
|
||||
f.METEOROLOGICAL_ID,
|
||||
f.METEOROLOGICALINFO_ID,
|
||||
f.OPERATOR,
|
||||
f.CODE
|
||||
f.TEMPERATURE,
|
||||
f.HUMIDITY,
|
||||
f.WINDDIRECTION,
|
||||
f.WINDSPEED,
|
||||
f.ISDELETE,
|
||||
f.OPERATTIME,
|
||||
f.METEOROLOGICAL_ID,
|
||||
f.METEOROLOGICALINFO_ID,
|
||||
f.OPERATOR,
|
||||
f.CODE
|
||||
FROM
|
||||
bus_meteorologicalinfo f
|
||||
bus_meteorologicalinfo f
|
||||
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
|
||||
f.OPERATTIME DESC
|
||||
LIMIT 1 ;
|
||||
f.OPERATTIME DESC
|
||||
LIMIT 1
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue