2021与蓝度共同重构项目,服务端
zhanzhiqin
2022-04-29 f02ad2926c2b5a2576e75c2cd6611862e9ec8cea
dao/src/main/resources/mapper/MonitorMapper.xml
@@ -35,17 +35,15 @@
                    #{deviceCode}
                </foreach>
            </if>
            <if test="bindingState != 2">
                AND t1.binding_state = #{bindingState}
            </if>
            <if test="equipmentState != 2">
                AND t1.equipment_state = #{equipmentState}
            </if>
        </where>
    </select>
    <select id="listMonitorDeviceSerial1" resultType="com.sandu.ximon.dao.domain.Monitor">
    <select id="listMonitorDeviceSerial1" resultType="com.sandu.ximon.dao.bo.MonitorBo">
        SELECT
        t1.*
        t1.*, t2.pole_id,
        t3.pole_name, t3.province,t3.city,t3.region,t3.address
        FROM
        monitor t1
        LEFT JOIN pole_binding t2 ON t1.device_serial = t2.device_code
@@ -61,6 +59,9 @@
                OR t1.note LIKE CONCAT(CONCAT('%', #{keyword}), '%')
                OR t3.pole_code LIKE CONCAT(CONCAT('%', #{keyword}), '%'))
            </if>
            <if test="bindingState != 2">
                AND t1.binding_state = #{bindingState}
            </if>
        </where>
    </select>