Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
ee0c3988
Commit
ee0c3988
authored
Nov 15, 2021
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加默认羊小咩租户判断
parent
fc1373dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
UserController.java
...n/quantgroup/xyqb/controller/external/UserController.java
+2
-1
InnerController.java
...tgroup/xyqb/controller/internal/user/InnerController.java
+5
-5
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/UserController.java
View file @
ee0c3988
...
...
@@ -24,6 +24,7 @@ import cn.quantgroup.xyqb.service.wechat.IWechatService;
import
cn.quantgroup.xyqb.session.XyqbSessionContextHolder
;
import
cn.quantgroup.xyqb.util.IpUtil
;
import
cn.quantgroup.xyqb.util.PasswordUtil
;
import
cn.quantgroup.xyqb.util.TenantUtil
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
com.alibaba.fastjson.JSON
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -483,7 +484,7 @@ public class UserController implements IBaseController {
brief
.
setPhoneNo
(
userDetail
.
getPhoneNo
().
substring
(
0
,
3
)
+
"****"
+
userDetail
.
getPhoneNo
().
substring
(
7
,
11
));
}
Integer
tenantId
=
Integer
.
parseInt
(
getCurrentTenantIdRedis
());
if
(
tenantId
!=
null
)
{
if
(
tenantId
!=
null
&&
!
TenantUtil
.
TENANT_DEFAULT
.
equals
(
tenantId
)
)
{
brief
=
tenantService
.
getTenantCustomerInfo
(
userDetail
,
tenantId
);
}
return
JsonResult
.
buildSuccessResult
(
null
,
brief
);
...
...
src/main/java/cn/quantgroup/xyqb/controller/internal/user/InnerController.java
View file @
ee0c3988
...
...
@@ -138,7 +138,7 @@ public class InnerController implements IBaseController {
if
(
user
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
""
,
null
);
}
if
(
tenantId
!=
null
)
{
if
(
tenantId
!=
null
&&
!
TenantUtil
.
TENANT_DEFAULT
.
equals
(
tenantId
)
)
{
// userId 查询对应productLogin 获取手机号和customerId
user
=
tenantService
.
getTenantUser
(
user
,
tenantId
);
if
(
user
==
null
)
{
...
...
@@ -160,7 +160,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildErrorStateResult
(
""
,
null
);
}
if
(
tenantId
!=
null
)
{
if
(
tenantId
!=
null
&&
!
TenantUtil
.
TENANT_DEFAULT
.
equals
(
tenantId
)
)
{
// userId 查询对应productLogin 获取手机号和customerId
user
=
tenantService
.
getTenantUser
(
user
,
tenantId
);
if
(
user
==
null
)
{
...
...
@@ -403,7 +403,7 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildErrorStateResult
(
"该用户无实名信息"
,
null
);
}
if
(
tenantId
!=
null
)
{
if
(
tenantId
!=
null
&&
!
TenantUtil
.
TENANT_DEFAULT
.
equals
(
tenantId
)
)
{
userDetail
=
tenantService
.
getTenantUserDetail
(
userDetail
,
tenantId
);
if
(
userDetail
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"该用户详情信息不存在"
,
null
);
...
...
@@ -420,7 +420,7 @@ public class InnerController implements IBaseController {
public
JsonResult
findUserByUserId
(
Long
userId
,
Integer
tenantId
)
{
User
user
=
userService
.
findById
(
userId
);
if
(
user
!=
null
)
{
if
(
tenantId
!=
null
)
{
if
(
tenantId
!=
null
&&
!
TenantUtil
.
TENANT_DEFAULT
.
equals
(
tenantId
)
)
{
// userId 查询对应productLogin 获取手机号和customerId
user
=
tenantService
.
getTenantUser
(
user
,
tenantId
);
if
(
user
==
null
)
{
...
...
@@ -442,7 +442,7 @@ public class InnerController implements IBaseController {
UserDetail
userDetail
=
null
;
userDetail
=
userDetailService
.
findSlaveByPhoneNo
(
phoneNo
);
if
(
userDetail
!=
null
)
{
if
(
tenantId
!=
null
)
{
if
(
tenantId
!=
null
&&
!
TenantUtil
.
TENANT_DEFAULT
.
equals
(
tenantId
)
)
{
userDetail
=
tenantService
.
getTenantUserDetail
(
userDetail
,
tenantId
);
if
(
userDetail
==
null
)
{
return
JsonResult
.
buildErrorStateResult
(
"该用户详情信息不存在"
,
null
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment