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
4293ad11
Commit
4293ad11
authored
Mar 18, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将mo-sidecar接口挪至customer-service
parent
ea3b1979
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
214 additions
and
78 deletions
+214
-78
UserRest.java
src/main/java/cn/quantgroup/customer/rest/UserRest.java
+19
-21
IUserService.java
...ain/java/cn/quantgroup/customer/service/IUserService.java
+13
-4
UserServiceImpl.java
.../cn/quantgroup/customer/service/impl/UserServiceImpl.java
+182
-53
No files found.
src/main/java/cn/quantgroup/customer/rest/UserRest.java
View file @
4293ad11
...
@@ -156,11 +156,8 @@ public class UserRest {
...
@@ -156,11 +156,8 @@ public class UserRest {
public
JsonResult
modifyUserDetail
(
@RequestParam
(
required
=
true
)
Long
userId
,
public
JsonResult
modifyUserDetail
(
@RequestParam
(
required
=
true
)
Long
userId
,
@RequestParam
(
required
=
true
)
String
realName
,
@RequestParam
(
required
=
true
)
String
realName
,
@RequestParam
(
required
=
true
)
String
idNO
)
{
@RequestParam
(
required
=
true
)
String
idNO
)
{
MoResult
<
String
>
result
=
userService
.
modifyUserDetail
(
userId
,
realName
,
idNO
);
//MoResult<String> result = userService.modifyUserDetail(userId, realName, idNO);
if
(!
result
.
isSuccess
()){
return
userService
.
modifyUserDetailNew
(
userId
,
realName
,
idNO
);
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
/**
/**
...
@@ -170,26 +167,29 @@ public class UserRest {
...
@@ -170,26 +167,29 @@ public class UserRest {
*/
*/
@PostMapping
(
value
=
"/pwd/reset"
)
@PostMapping
(
value
=
"/pwd/reset"
)
public
JsonResult
passwordReset
(
@RequestParam
(
required
=
true
)
String
phone
)
{
public
JsonResult
passwordReset
(
@RequestParam
(
required
=
true
)
String
phone
)
{
MoResult
<
String
>
result
=
userService
.
passwordRest
(
phone
);
//MoResult<String> result = userService.passwordRest(phone);
if
(!
result
.
isSuccess
()){
return
userService
.
passwordRestNew
(
phone
);
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
/**
/**
* 修改用户账户状态(注销)
* 修改用户账户状态(注销)
--更新为禁用
*
*
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/modify/account/status/disable"
)
@PostMapping
(
value
=
"/modify/account/status/disable"
)
public
JsonResult
modifyAccountStatusDisable
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
public
JsonResult
modifyAccountStatusDisable
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
//MoResult<Boolean> result = userService.modifyAccountStatusDisable(userId);
//MoResult<Boolean> result = userService.modifyAccountStatusDisable(userId);
MoResult
<
Boolean
>
result
=
userService
.
modifyAccountStatusDisableNew
(
userId
);
return
userService
.
modifyAccountStatusDisableNew
(
userId
);
if
(!
result
.
isSuccess
()){
}
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
/**
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
* 新增接口
* 注销账户,删除账户信息
* @return
*/
@PostMapping
(
value
=
"/modify/account/delete"
)
public
JsonResult
deleteAccount
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
return
userService
.
deleteAccount
(
userId
);
}
}
/**
/**
...
@@ -199,11 +199,8 @@ public class UserRest {
...
@@ -199,11 +199,8 @@ public class UserRest {
*/
*/
@PostMapping
(
value
=
"/modify/account/status/active"
)
@PostMapping
(
value
=
"/modify/account/status/active"
)
public
JsonResult
modifyAccountStatusActive
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
public
JsonResult
modifyAccountStatusActive
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
MoResult
<
Boolean
>
result
=
userService
.
modifyAccountStatusActive
(
userId
);
//MoResult<Boolean> result = userService.modifyAccountStatusActive(userId);
if
(!
result
.
isSuccess
()){
return
userService
.
modifyAccountStatusActiveNew
(
userId
);
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
return
JsonResult
.
buildSuccessResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
...
@@ -267,6 +264,7 @@ public class UserRest {
...
@@ -267,6 +264,7 @@ public class UserRest {
@PostMapping
(
value
=
"/search/userInfo"
)
@PostMapping
(
value
=
"/search/userInfo"
)
public
JsonResult
getBasicUserInfo
(
UserQueryParam
userQueryParam
)
{
public
JsonResult
getBasicUserInfo
(
UserQueryParam
userQueryParam
)
{
JsonResult
result
=
userService
.
findUserInfoByUserParam
(
userQueryParam
);
JsonResult
result
=
userService
.
findUserInfoByUserParam
(
userQueryParam
);
//JsonResult result = userService.findUserInfoByUserParamNew(userQueryParam);
if
(!
result
.
isSuccess
()){
if
(!
result
.
isSuccess
()){
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
...
...
src/main/java/cn/quantgroup/customer/service/IUserService.java
View file @
4293ad11
...
@@ -49,7 +49,7 @@ public interface IUserService extends UserDetailsService {
...
@@ -49,7 +49,7 @@ public interface IUserService extends UserDetailsService {
* @param phoneNo
* @param phoneNo
* @return
* @return
*/
*/
MoResult
<
String
>
passwordRestNew
(
String
phoneNo
);
JsonResult
passwordRestNew
(
String
phoneNo
);
/**
/**
* 注销账户
* 注销账户
...
@@ -57,12 +57,19 @@ public interface IUserService extends UserDetailsService {
...
@@ -57,12 +57,19 @@ public interface IUserService extends UserDetailsService {
* @return
* @return
*/
*/
MoResult
<
Boolean
>
modifyAccountStatusDisable
(
Long
userId
);
MoResult
<
Boolean
>
modifyAccountStatusDisable
(
Long
userId
);
/**
* 注销账户新逻辑--冻结账户
* @param userId
* @return
*/
JsonResult
modifyAccountStatusDisableNew
(
Long
userId
);
/**
/**
* 注销账户新逻辑
* 注销账户新逻辑
* @param userId
* @param userId
* @return
* @return
*/
*/
MoResult
<
Boolean
>
modifyAccountStatusDisableNew
(
Long
userId
);
JsonResult
deleteAccount
(
Long
userId
);
/**
/**
* 激活账户
* 激活账户
...
@@ -75,7 +82,7 @@ public interface IUserService extends UserDetailsService {
...
@@ -75,7 +82,7 @@ public interface IUserService extends UserDetailsService {
* @param userId
* @param userId
* @return
* @return
*/
*/
MoResult
<
Boolean
>
modifyAccountStatusActiveNew
(
Long
userId
);
JsonResult
modifyAccountStatusActiveNew
(
Long
userId
);
/**
/**
* 修改用户姓名、身份证
* 修改用户姓名、身份证
...
@@ -86,12 +93,14 @@ public interface IUserService extends UserDetailsService {
...
@@ -86,12 +93,14 @@ public interface IUserService extends UserDetailsService {
*/
*/
MoResult
<
String
>
modifyUserDetail
(
Long
userId
,
String
realName
,
String
idNO
);
MoResult
<
String
>
modifyUserDetail
(
Long
userId
,
String
realName
,
String
idNO
);
MoResult
<
String
>
modifyUserDetailNew
(
Long
userId
,
String
realName
,
String
idNO
);
JsonResult
modifyUserDetailNew
(
Long
userId
,
String
realName
,
String
idNO
);
MoResult
<
String
>
getRewardPointsType
();
MoResult
<
String
>
getRewardPointsType
();
JsonResult
<
UserBasicInfo
>
findUserInfoByUserParam
(
UserQueryParam
userQueryParam
);
JsonResult
<
UserBasicInfo
>
findUserInfoByUserParam
(
UserQueryParam
userQueryParam
);
JsonResult
<
UserBasicInfo
>
findUserInfoByUserParamNew
(
UserQueryParam
userQueryParam
);
MoResult
<
String
>
queryPointDetailByPage
(
UserQueryParam
userQueryParam
);
MoResult
<
String
>
queryPointDetailByPage
(
UserQueryParam
userQueryParam
);
MoResult
<
String
>
queryUserCouponInfoByUserParam
(
UserQueryParam
userQueryParam
);
MoResult
<
String
>
queryUserCouponInfoByUserParam
(
UserQueryParam
userQueryParam
);
...
...
src/main/java/cn/quantgroup/customer/service/impl/UserServiceImpl.java
View file @
4293ad11
This diff is collapsed.
Click to expand it.
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