|
@@ -144,6 +144,7 @@
|
|
FROM
|
|
FROM
|
|
pc_site_user siteUser
|
|
pc_site_user siteUser
|
|
LEFT JOIN pc_site site ON siteUser.SiteID = site.SiteID
|
|
LEFT JOIN pc_site site ON siteUser.SiteID = site.SiteID
|
|
|
|
+ left join (select CreateUserID,max(SigninTime) maxSigninTime from pc_signin sign group by CreateUserID) psgn on psgn.CreateUserID = siteUser.UserID
|
|
WHERE
|
|
WHERE
|
|
1=1
|
|
1=1
|
|
<if test="siteUserName!='' and siteUserName!=null">
|
|
<if test="siteUserName!='' and siteUserName!=null">
|
|
@@ -156,7 +157,7 @@
|
|
and site.regionCode = #{regionCode}
|
|
and site.regionCode = #{regionCode}
|
|
</if>
|
|
</if>
|
|
ORDER BY
|
|
ORDER BY
|
|
- siteUser.CreateTime DESC
|
|
|
|
|
|
+ psgn.maxSigninTime desc,siteUser.CreateTime DESC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getSiteUserSigninList" resultType="com.hz.employmentsite.vo.signin.SigninVo">
|
|
<select id="getSiteUserSigninList" resultType="com.hz.employmentsite.vo.signin.SigninVo">
|