| | |
| | | AND t2.device_type = 0 |
| | | LEFT JOIN pole t3 ON t3.id = t2.pole_id |
| | | <where> |
| | | t1.error_code != 0 |
| | | <if test="keyword != null and keyword != ''"> |
| | | AND ( |
| | | t3.id LIKE CONCAT('%', #{keyword},'%') |
| | |
| | | <if test="userid != null"> |
| | | t3.client_id = #{userId} OR t3.user_id = #{userId} |
| | | </if> |
| | | t1.light_report_error_id IN ( SELECT t.max_id FROM ( SELECT Max( light_report_error.light_report_error_id ) AS max_id FROM light_report_error GROUP BY light_report_error.device_code ) AS t ) |
| | | t1.light_report_error_id IN ( SELECT t.max_id FROM ( SELECT Max( light_report_error.light_report_error_id ) AS |
| | | max_id FROM light_report_error GROUP BY light_report_error.device_code ) AS t ) |
| | | ORDER BY |
| | | t1.create_time DESC |
| | | </select> |