|
|
@ -153,32 +153,6 @@ |
|
|
|
) c |
|
|
|
</select> |
|
|
|
<select id="selectOneUserInfoByGridAndMobile" resultType="com.elink.esua.epdc.dto.SysUserDTO"> |
|
|
|
select ID, |
|
|
|
USERNAME, |
|
|
|
PASSWORD, |
|
|
|
REAL_NAME, |
|
|
|
HEAD_URL, |
|
|
|
GENDER, |
|
|
|
EMAIL, |
|
|
|
MOBILE, |
|
|
|
DEPT_ID, |
|
|
|
SUPER_ADMIN, |
|
|
|
STATUS, |
|
|
|
REMARK, |
|
|
|
DEL_FLAG, |
|
|
|
CREATOR, |
|
|
|
CREATE_DATE, |
|
|
|
UPDATER, |
|
|
|
UPDATE_DATE, |
|
|
|
USER_TAG_KEY, |
|
|
|
OPEN_ID, |
|
|
|
scrip |
|
|
|
from sys_user |
|
|
|
where del_flag='0' and dept_id=#{gridId} and mobile = #{mobile} |
|
|
|
order by CREATE_DATE desc |
|
|
|
limit 1 |
|
|
|
</select> |
|
|
|
<select id="selectOneUserInfoByScrip" resultType="com.elink.esua.epdc.dto.SysUserDTO"> |
|
|
|
select u.ID, |
|
|
|
u.USERNAME, |
|
|
|
u.PASSWORD, |
|
|
@ -203,6 +177,30 @@ |
|
|
|
LEFT JOIN sys_user_dept ud ON u.id = ud.user_id AND ud.del_flag = '0' |
|
|
|
where u.del_flag='0' and ud.dept_id=#{gridId} and u.mobile = #{mobile} |
|
|
|
order by u.CREATE_DATE desc |
|
|
|
limit 1; |
|
|
|
limit 1 |
|
|
|
</select> |
|
|
|
<select id="selectOneUserInfoByScrip" resultType="com.elink.esua.epdc.dto.SysUserDTO"> |
|
|
|
select ID, |
|
|
|
USERNAME, |
|
|
|
PASSWORD, |
|
|
|
REAL_NAME, |
|
|
|
HEAD_URL, |
|
|
|
GENDER, |
|
|
|
EMAIL, |
|
|
|
MOBILE, |
|
|
|
DEPT_ID, |
|
|
|
SUPER_ADMIN, |
|
|
|
STATUS, |
|
|
|
REMARK, |
|
|
|
DEL_FLAG, |
|
|
|
CREATOR, |
|
|
|
CREATE_DATE, |
|
|
|
UPDATER, |
|
|
|
UPDATE_DATE, |
|
|
|
USER_TAG_KEY, |
|
|
|
OPEN_ID, |
|
|
|
scrip |
|
|
|
from sys_user |
|
|
|
where del_flag='0' and scrip = #{scrip} |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|