|
@@ -186,7 +186,8 @@
|
|
|
<if test="organId != null">
|
|
|
FIND_IN_SET(su.organ_id_,#{organId})
|
|
|
</if>
|
|
|
- </where> <include refid="global.limit"/>) ue
|
|
|
+ </where>
|
|
|
+ ORDER BY su.create_time_ DESC <include refid="global.limit"/>) ue
|
|
|
LEFT JOIN sys_user_role sur ON sur.user_id_ = ue.user_id_
|
|
|
LEFT JOIN sys_role sr ON sr.id_ = sur.role_id_
|
|
|
LEFT JOIN organization o ON FIND_IN_SET(o.id_,ue.organ_id_)
|
|
@@ -194,7 +195,6 @@
|
|
|
<if test="search != null">
|
|
|
AND (ue.real_name_ LIKE CONCAT('%',#{search},'%') OR ue.phone_ LIKE CONCAT('%',#{search},'%'))
|
|
|
</if>
|
|
|
- ORDER BY ue.create_time_ DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="queryEmployByOrganIdCount" resultType="int">
|