| | |
| | | FROM |
| | | ja_fw_alarm_favorite f |
| | | WHERE |
| | | f.alarm_record_id = dar.id |
| | | f.alarm_record_id = dar.id::VARCHAR |
| | | AND f.user_id = #{param2.currentUserId} -- MyBatis 参数 |
| | | AND f.is_deleted = 0 |
| | | ) AS favorited |
| | | from |
| | | ja_fw_drone_alarm_record dar |
| | | left join |
| | | ja_fw_device d on dar.device_id = d.id |
| | | ja_fw_device d on dar.device_id = d.id::VARCHAR |
| | | <where> |
| | | dar.is_deleted = 0 |
| | | and d.is_enabled = 1 |
| | |
| | | d.status deviceStatus |
| | | from |
| | | ja_fw_drone_alarm_record dar |
| | | left join ja_fw_device d on dar.device_id = d.id |
| | | left join ja_fw_device d on dar.device_id = d.id::VARCHAR |
| | | <where> |
| | | dar.is_deleted = 0 |
| | | <if test="ids != null and ids.size() > 0"> |
| | |
| | | FROM |
| | | ja_fw_drone_alarm_record dar |
| | | left join |
| | | ja_fw_device d on dar.device_id = d.id |
| | | ja_fw_device d on dar.device_id = d.id::VARCHAR |
| | | WHERE dar.is_deleted = 0 |
| | | AND d.is_deleted = 0 |
| | | and d.is_enabled = 1 |