浏览代码

查登录账户接口:手机号码改为从登录账号表查

zou.yingbin 4 年之前
父节点
当前提交
06b92f92ba
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      models/ermcpAccMgr.go

+ 2 - 4
models/ermcpAccMgr.go

@@ -63,11 +63,10 @@ func (r *ErmcpLoginUser) buildSql() string {
 		"       '企业成员' rolename," +
 		"       l.loginstatus," +
 		"       l.password," +
-		"       u.mobile" +
+		"       l.mobile" +
 		"  from useraccount t" +
 		"  left join loginaccount l" +
 		"    on t.userid = l.userid" +
-		"  left join userinfo u on t.userid=u.userid" +
 		"  left join tmp r" +
 		"    on t.userid = r.userid" +
 		" where 1 = 1" +
@@ -88,11 +87,10 @@ func (r *ErmcpLoginUser) buildSql() string {
 		"       Nvl(r.rolename, l.clientroleid) rolename," +
 		"       l.loginstatus," +
 		"       l.password," +
-		"       u.mobile" +
+		"       l.mobile" +
 		"  from useraccount t" +
 		"  left join loginaccount l" +
 		"    on t.userid = l.userid" +
-		"  left join userinfo u on t.userid=u.userid" +
 		"  left join systemmanagerrole r" +
 		"    on l.clientroleid = r.autoid" +
 		"   and r.areauserid = l.userid" +