| | |
| | | ) 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> |
| | | |
| | |
| | | where a.team_leader_id = #{record.teamLeaderId} |
| | | </select> |
| | | |
| | | <select id="selectLeaderByUniqueCodeAndOrderBycreateTime" resultType="cc.mrbird.febs.mall.entity.MallTeamLeader"> |
| | | select |
| | | a.* |
| | | from mall_team_leader a |
| | | where a.unique_code = #{uniqueCode} |
| | | order by a.CREATED_TIME desc |
| | | limit 1 |
| | | </select> |
| | | |
| | | </mapper> |