Browse Source

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

zou.yingbin 4 năm trước cách đây
mục cha
commit
06b92f92ba
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  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" +