2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-04-15 2f3d783999935f06228705e75fac26ebf099bf87
dao/src/main/resources/mapper/LightReportErrorMapper.xml
@@ -21,7 +21,9 @@
            t2.pole_name
        FROM
            light_report_error t1
                LEFT JOIN pole t2 USING ( device_code )
        LEFT JOIN pole_binding t2 ON t1.device_code = t2.device_code
        AND t2.device_type = 0
        LEFT JOIN pole t3 ON t3.id = t2.pole_id
        <where>
            <if test="keyword != null and keyword != ''">
                AND (
@@ -29,6 +31,9 @@
                OR t2.pole_name LIKE CONCAT('%', #{keyword},'%')
                )
            </if>
            <if test="userid != null">
                AND (t3.user_id = #{userid} OR t3.client_id = #{userid})
            </if>
        </where>
        ORDER BY t1.light_report_error_id DESC
    </select>