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
9a3b67f0
Commit
9a3b67f0
authored
Nov 18, 2021
by
guangjing.gao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统一校验处理租户ID
parent
3e027ee0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
UserController.java
...n/quantgroup/xyqb/controller/external/UserController.java
+1
-1
UserController.java
...oup/xyqb/controller/middleoffice/user/UserController.java
+2
-2
WxController.java
...ntgroup/xyqb/controller/middleoffice/wx/WxController.java
+10
-1
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/UserController.java
View file @
9a3b67f0
...
@@ -454,7 +454,7 @@ public class UserController implements IBaseController {
...
@@ -454,7 +454,7 @@ public class UserController implements IBaseController {
if
(
TenantUtil
.
checkoutTenantIsDefault
(
tenantId
))
{
if
(
TenantUtil
.
checkoutTenantIsDefault
(
tenantId
))
{
user
=
tenantService
.
getTenantUser
(
user
,
tenantId
);
user
=
tenantService
.
getTenantUser
(
user
,
tenantId
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
return
JsonResult
.
build
ErrorStateResult
(
"查无此人"
,
null
);
return
JsonResult
.
build
SuccessResult
(
null
,
result
);
}
}
}
}
String
phoneNo
=
user
.
getPhoneNo
();
String
phoneNo
=
user
.
getPhoneNo
();
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/user/UserController.java
View file @
9a3b67f0
...
@@ -78,9 +78,9 @@ public class UserController {
...
@@ -78,9 +78,9 @@ public class UserController {
/**
/**
* 根据uuid或者userids 获取用户信息
* 根据uuid或者userids 获取用户信息
*
*
@yapi http://yapi.quantgroups.com/project/17/interface/api/29902
* @param params
* @param params
* @return
http://yapi.quantgroups.com/project/17/interface/api/29902
* @return
*/
*/
@PostMapping
(
"/getByUuidsOrUserIds"
)
@PostMapping
(
"/getByUuidsOrUserIds"
)
public
JsonResult
getByUuidsOrUserIds
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
public
JsonResult
getByUuidsOrUserIds
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
...
...
src/main/java/cn/quantgroup/xyqb/controller/middleoffice/wx/WxController.java
View file @
9a3b67f0
...
@@ -19,6 +19,11 @@ public class WxController {
...
@@ -19,6 +19,11 @@ public class WxController {
@Resource
@Resource
private
IWechatService
wechatService
;
private
IWechatService
wechatService
;
/**
* http://open.quantgroups.com/project/59/interface/api/693
* @param userId
* @return
*/
@GetMapping
(
"/userId/{userId}"
)
@GetMapping
(
"/userId/{userId}"
)
public
JsonResult
openId
(
@PathVariable
Long
userId
)
{
public
JsonResult
openId
(
@PathVariable
Long
userId
)
{
WechatUserInfo
wechatUserInfo
=
wechatService
.
queryByUserId
(
userId
);
WechatUserInfo
wechatUserInfo
=
wechatService
.
queryByUserId
(
userId
);
...
@@ -37,7 +42,11 @@ public class WxController {
...
@@ -37,7 +42,11 @@ public class WxController {
return
JsonResult
.
buildSuccessResultGeneric
(
wechatUserInfo
.
getOpenId
());
return
JsonResult
.
buildSuccessResultGeneric
(
wechatUserInfo
.
getOpenId
());
}
}
/**
* http://open.quantgroups.com/project/59/interface/api/693
* @param phoneNo
* @return
*/
@GetMapping
(
"/phoneNo/{phoneNo}"
)
@GetMapping
(
"/phoneNo/{phoneNo}"
)
public
JsonResult
openId
(
@PathVariable
String
phoneNo
)
{
public
JsonResult
openId
(
@PathVariable
String
phoneNo
)
{
WechatUserInfo
wechatUserInfo
=
wechatService
.
findWechatUserInfoByPhoneNo
(
phoneNo
);
WechatUserInfo
wechatUserInfo
=
wechatService
.
findWechatUserInfoByPhoneNo
(
phoneNo
);
...
...
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