Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
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
QG
customer-service
Commits
f7bcd85a
Commit
f7bcd85a
authored
Oct 19, 2021
by
任国坤
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "参数修改,前台400问题处理"
This reverts commit
5ad43b3d
.
parent
5ad43b3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
UserRest.java
src/main/java/cn/quantgroup/customer/rest/UserRest.java
+18
-20
No files found.
src/main/java/cn/quantgroup/customer/rest/UserRest.java
View file @
f7bcd85a
...
...
@@ -41,7 +41,6 @@ public class UserRest {
private
final
IUserService
userService
;
private
final
IXyqbService
xyqbService
;
private
final
String
LOG_PRE
=
"[UserRest]."
;
@Autowired
public
UserRest
(
IUserService
userService
,
IXyqbService
xyqbService
)
{
...
...
@@ -148,14 +147,12 @@ public class UserRest {
@PostMapping
(
value
=
"/modify/user_detail"
)
public
JsonResult
modifyUserDetail
(
@RequestParam
(
required
=
true
)
Long
userId
,
@RequestParam
(
required
=
true
)
String
realName
,
@RequestParam
(
required
=
true
)
String
idNo
)
{
log
.
info
(
"{}[modifyUserDetail]-begin请求,参数:userId ={},realName = {},idNo = {}"
,
LOG_PRE
,
userId
,
realName
,
idNo
);
MoResult
<
String
>
result
=
userService
.
modifyUserDetail
(
userId
,
realName
,
idNo
);
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
@RequestParam
(
required
=
true
)
String
idNO
)
{
MoResult
<
String
>
result
=
userService
.
modifyUserDetail
(
userId
,
realName
,
idNO
);
if
(!
result
.
isSuccess
()){
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
log
.
info
(
"{}[modifyUserDetail]-end请求"
,
LOG_PRE
);
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
/**
...
...
@@ -166,10 +163,10 @@ public class UserRest {
@PostMapping
(
value
=
"/pwd/reset"
)
public
JsonResult
passwordReset
(
@RequestParam
(
required
=
true
)
String
phone
)
{
MoResult
<
String
>
result
=
userService
.
passwordRest
(
phone
);
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
/**
...
...
@@ -180,10 +177,10 @@ public class UserRest {
@PostMapping
(
value
=
"/modify/account/status/disable"
)
public
JsonResult
modifyAccountStatusDisable
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
MoResult
<
Boolean
>
result
=
userService
.
modifyAccountStatusDisable
(
userId
);
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
/**
...
...
@@ -194,16 +191,15 @@ public class UserRest {
@PostMapping
(
value
=
"/modify/account/status/active"
)
public
JsonResult
modifyAccountStatusActive
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
MoResult
<
Boolean
>
result
=
userService
.
modifyAccountStatusActive
(
userId
);
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
if
(!
result
.
isSuccess
())
{
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
/**
* 查询用户详细信息(根据手机号或身份证号查询)
*
* @param userQueryParam
* @return
*/
...
...
@@ -245,4 +241,6 @@ public class UserRest {
}
}
任国坤
@guokun.ren
mentioned in commit
55101e2b
·
Oct 19, 2021
mentioned in commit
55101e2b
mentioned in commit 55101e2bdf3230927d552dd56d9e09942217a129
Toggle commit list
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