xiaoyong931011
2022-09-22 a56aa58c55f966c38cb8b5fc969eb1018fad5ce8
src/main/resources/mapper/modules/MallTeamLeaderMapper.xml
@@ -33,7 +33,7 @@
            ) * 1000
        ) AS distance
        from mall_team_leader a
        inner join mall_electronic_fence b on b.team_leader_code = a.unique_code
        left join mall_electronic_fence b on b.team_leader_code = a.unique_code
        <where>
            a.state = 1 and a.online_state = 1
            <if test="record.query != null and record.query != ''">
@@ -119,6 +119,7 @@
                and ( a.name like CONCAT('%', CONCAT(#{record.query}, '%'))
                    or a.phone like CONCAT('%', CONCAT(#{record.query}, '%'))
                    or a.take_code like CONCAT('%', CONCAT(#{record.query}, '%'))
                    or b.goods_name like CONCAT('%', CONCAT(#{record.query}, '%'))
                    )
            </if>
            <if test="record.status == 4 and record.status != 0">