2021与蓝度共同重构项目,服务端
liuhaonan
2022-08-04 19d542ddaa4a2d5a737912505e3195948ffa9ebe
dao/src/main/resources/mapper/PoleMapper.xml
@@ -47,6 +47,7 @@
        LEFT JOIN pole_group_relation t2 ON t1.id = t2.pole_id
        LEFT JOIN pole_group t3 ON t3.group_id = t2.pole_group_id
        <where>
            1=1
            <if test="userid != null">
                AND (t1.user_id = #{userid} OR t1.client_id = #{userid})
            </if>
@@ -70,8 +71,11 @@
            <if test="bingStates != null and bingStates == 1 ">
                AND t1.user_id = -1
            </if>
            <if test="center != null and center != ''">
                AND t1.centre = #{center}
            <if test="centre != null and centre == 0">
                AND t1.centre = 0
            </if>
            <if test="centre != null and centre == 1">
                AND t1.centre = 1
            </if>
        </where>
        GROUP BY t1.id