dao/src/main/resources/mapper/LightReportErrorMapper.xml
@@ -30,11 +30,15 @@ AND ( t3.id LIKE CONCAT('%', #{keyword},'%') OR t3.pole_name LIKE CONCAT('%', #{keyword},'%') OR t1.error_code LIKE CONCAT('%', #{keyword},'%') ) </if> <if test="userid != null"> AND (t3.user_id = #{userid} OR t3.client_id = #{userid}) </if> <if test="error_code != null"> AND t1.error_code = #{error_code} </if> </where> ORDER BY t1.light_report_error_id DESC </select>