|
@@ -52,10 +52,10 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryRiders" resultType="com.sqx.modules.app.entity.queryRidersVo">
|
|
<select id="queryRiders" resultType="com.sqx.modules.app.entity.queryRidersVo">
|
|
|
- select u.user_id,u.user_name,u.phone,r.station_name
|
|
|
|
|
|
|
+ select u.user_id,u.user_name,u.phone,u.avatar,r.station_name
|
|
|
from tb_user u
|
|
from tb_user u
|
|
|
left join rider_station r on r.id = u.rider_station_id
|
|
left join rider_station r on r.id = u.rider_station_id
|
|
|
- where u.user_type = 2 and u.on_line_flag = 1
|
|
|
|
|
|
|
+ where u.rider_open_id is not null and u.on_line_flag = 1
|
|
|
and u.rider_station_id = #{riderStationId} and u.user_id != #{userId}
|
|
and u.rider_station_id = #{riderStationId} and u.user_id != #{userId}
|
|
|
<if test="keyword != null and keyword != ''">
|
|
<if test="keyword != null and keyword != ''">
|
|
|
and (u.phone like concat('%',#{keyword},'%') or u.user_name like concat('%',#{keyword},'%'))
|
|
and (u.phone like concat('%',#{keyword},'%') or u.user_name like concat('%',#{keyword},'%'))
|