| | |
| | | |
| | | <if test="param2.droneName != null and param2.droneName != '' or (param2.droneSerialNo != null and param2.droneSerialNo != '')"> |
| | | and ( |
| | | 1=2 <if test="param2.droneName != null and param2.droneName != ''"> |
| | | or dar.drone_name like CONCAT('%', #{param2.droneName}, '%') |
| | | </if> |
| | | 1=2 |
| | | <if test="param2.droneName != null and param2.droneName != ''"> |
| | | or dar.drone_name like CONCAT('%', #{param2.droneName}, '%') |
| | | </if> |
| | | <if test="param2.droneSerialNo != null and param2.droneSerialNo != ''"> |
| | | or dar.drone_serial_no like CONCAT('%', #{param2.droneSerialNo}, '%') |
| | | </if> |
| | |
| | | </if> |
| | | |
| | | <if test="param2.startTime != null and param2.startTime != '' and param2.endTime != null and param2.endTime != ''"> |
| | | and dar.alarm_time BETWEEN #{param2.startTime} AND #{param2.endTime} |
| | | and dar.alarm_time BETWEEN #{param2.startTime}::timestamp AND #{param2.endTime}::timestamp |
| | | </if> |
| | | |
| | | <if test="param2.deviceType != null and param2.deviceType != ''"> |