| | |
| | | (SELECT
|
| | | d.mac
|
| | | FROM
|
| | | device d,
|
| | | monitor_point mp |
| | | device d
|
| | | WHERE
|
| | | d.is_delete = 0
|
| | | AND d.monitor_point_id = mp.id |
| | | <if test="monitorPointId != null">
|
| | | AND mp.id = #{monitorPointId}
|
| | | AND d.monitor_point_id = #{monitorPointId}
|
| | | </if>
|
| | | <if test="mac != null">
|
| | | AND d.mac = #{mac}
|
| | |
| | | AND time < #{end}
|
| | | </select>
|
| | |
|
| | | <select id="getMonitorPointOrDeviceAvgData" resultType="java.util.Map">
|
| | | <select id="getMonitorPointOrDeviceAvgData" resultType="java.util.LinkedHashMap">
|
| | | SELECT
|
| | | DATE_FORMAT(time, #{typeFormat}) time
|
| | | <foreach collection="sensorKeys" open="," separator="," item="sensorKey">
|