|
@@ -11,6 +11,15 @@
|
11
|
11
|
from t_user u left join t_school s on u.schoolid = s.schoolid
|
12
|
12
|
where u.loginname=#{loginname} limit 1
|
13
|
13
|
</select>
|
|
14
|
+ <!-- 手机号登录 -->
|
|
15
|
+ <select id="getUserByPhone" resultType="com.xhkjedu.suser.vo.system.UserVo">
|
|
16
|
+ select u.userid,u.username,u.loginname,u.loginpwd,u.userphone,u.userbirthday,u.cardid,u.headpic,u.usertype,
|
|
17
|
+ u.userstate,u.opepassword,u.createid,u.createtime,u.deleteid,u.deletetime,u.schoolid,u.bindmac,u.mac,u.usertime
|
|
18
|
+ ,s.year,s.schoolname,s.schoollevel,s.schoolstate,s.bindmac sbindmac,s.errorrate,s.schooldomain
|
|
19
|
+ ,(select cloudcode from t_cloud limit 1)cloudcode
|
|
20
|
+ from t_user u left join t_school s on u.schoolid = s.schoolid
|
|
21
|
+ where u.userphone=#{userphone} limit 1
|
|
22
|
+ </select>
|
14
|
23
|
<!--学生andorid登录,20211221添加GROUP_CONCAT,因为不绑定的情况下一个mac可以多个帐号登录-->
|
15
|
24
|
<select id="getUserByLoginnameMac" resultType="com.xhkjedu.suser.vo.system.UserVo">
|
16
|
25
|
select u.userid,u.username,u.loginname,u.loginpwd,u.userbirthday,u.cardid,u.headpic,u.usertype,u.usersex,u.userphone,
|