|
@@ -25,7 +25,7 @@
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<select id="queryStudent" parameterType="object" resultType="com.ym.mec.auth.api.entity.SysUser">
|
|
<select id="queryStudent" parameterType="object" resultType="com.ym.mec.auth.api.entity.SysUser">
|
|
- select a.id_ as id,
|
|
|
|
|
|
+ select distinct a.id_ as id,
|
|
a.username_ as username,
|
|
a.username_ as username,
|
|
a.real_name_ as realName,
|
|
a.real_name_ as realName,
|
|
a.phone_ as phone
|
|
a.phone_ as phone
|
|
@@ -34,7 +34,7 @@
|
|
<if test="param.roomUid != null">
|
|
<if test="param.roomUid != null">
|
|
and b.room_uid_ = #{param.roomUid}
|
|
and b.room_uid_ = #{param.roomUid}
|
|
</if>
|
|
</if>
|
|
- where a.user_type_ like '%STUDENT%'
|
|
|
|
|
|
+ where find_in_set('STUDENT', a.user_type_)
|
|
and a.lock_flag_ = 0
|
|
and a.lock_flag_ = 0
|
|
and a.del_flag_ = 0
|
|
and a.del_flag_ = 0
|
|
<if test="param.tenantId != null ">
|
|
<if test="param.tenantId != null ">
|
|
@@ -61,7 +61,7 @@
|
|
and a.room_uid_ = #{param.roomUid}
|
|
and a.room_uid_ = #{param.roomUid}
|
|
<if test="param.search != null ">
|
|
<if test="param.search != null ">
|
|
and (
|
|
and (
|
|
- b.`user_id_` LIKE CONCAT('%', #{param.search},'%')
|
|
|
|
|
|
+ a.`user_id_` LIKE CONCAT('%', #{param.search},'%')
|
|
OR b.`username_` LIKE CONCAT('%', #{param.search},'%')
|
|
OR b.`username_` LIKE CONCAT('%', #{param.search},'%')
|
|
OR b.`phone_` LIKE CONCAT('%', #{param.search},'%')
|
|
OR b.`phone_` LIKE CONCAT('%', #{param.search},'%')
|
|
)
|
|
)
|