| | |
| | | ) AS distance |
| | | from mall_team_leader a |
| | | <where> |
| | | a.state = 1 |
| | | 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}, '%')) |
| | |
| | | select |
| | | a.* |
| | | from mall_team_leader a |
| | | where a.state = 1 |
| | | where a.state = 1 and a.online_state = 1 |
| | | </select> |
| | | |
| | | <select id="selectLeaderByUniqueCode" resultType="cc.mrbird.febs.mall.entity.MallTeamLeader"> |
| | |
| | | ) * 1000 |
| | | ) AS distance |
| | | from mall_team_leader a |
| | | where a.state = 1 |
| | | where a.state = 1 and a.online_state = 1 |
| | | order by distance ASC limit 1 |
| | | </select> |
| | | |