综合查询页面
This commit is contained in:
@ -199,4 +199,13 @@
|
||||
update_by = IF(VALUES(temperature) > temperature, VALUES(update_by), update_by),
|
||||
temperature = IF(VALUES(temperature) > temperature, VALUES(temperature), temperature)
|
||||
</insert>
|
||||
|
||||
<select id="getAllBatteryIdsBySites" resultType="com.xzzn.ems.domain.vo.SiteBatteryListVo">
|
||||
select DISTINCT t.site_id as siteId, t.device_id as deviceId
|
||||
from ems_battery_data_month t
|
||||
where t.site_id in
|
||||
<foreach collection="siteIds" item="siteId" open="(" close=")" separator=",">
|
||||
#{siteId}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user