| | |
| | | ) * 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 != ''"> |
| | |
| | | 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"> |