| | |
| | | and dar.device_id = #{param2.deviceId} |
| | | </if> |
| | | <if test="param2.droneName != null and param2.droneName != ''"> |
| | | and dar.drone_name like CONCAT('%', #{param2.droneName}, '%') |
| | | and ( |
| | | dar.drone_name like CONCAT('%', #{param2.droneName}, '%') |
| | | </if> |
| | | <if test="param2.droneSerialNo != null and param2.droneSerialNo != ''"> |
| | | and dar.drone_serial_no = #{param2.droneSerialNo} |
| | | or dar.drone_serial_no like CONCAT('%', #{param2.droneSerialNo}, '%') |
| | | ) |
| | | </if> |
| | | <if test="param2.droneType != null and param2.droneType != ''"> |
| | | and dar.drone_type = #{param2.droneType} |
| | |
| | | |
| | | |
| | | <select id="exportFwDroneAlarmRecord" resultType="org.sxkj.fw.record.excel.FwDroneAlarmRecordExcel"> |
| | | SELECT * FROM ja_fw_drone_alarm_record ${ew.customSqlSegment} |
| | | select |
| | | dar.*, |
| | | d.device_name, |
| | | d.status deviceStatus |
| | | from |
| | | ja_fw_drone_alarm_record dar |
| | | left join ja_fw_device d on dar.device_id = d.id |
| | | <where> |
| | | dar.is_deleted = 0 |
| | | <if test="ids != null and ids.size() > 0"> |
| | | and dar.id in |
| | | <foreach item="item" collection="ids" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="alarmTypeStatistics" resultType="org.sxkj.fw.cockpit.vo.AlarmStatisticsVO"> |