Commit f7bcd85a authored by 任国坤's avatar 任国坤

Revert "参数修改,前台400问题处理"

This reverts commit 5ad43b3d.
parent 5ad43b3d
...@@ -41,7 +41,6 @@ public class UserRest { ...@@ -41,7 +41,6 @@ public class UserRest {
private final IUserService userService; private final IUserService userService;
private final IXyqbService xyqbService; private final IXyqbService xyqbService;
private final String LOG_PRE = "[UserRest].";
@Autowired @Autowired
public UserRest(IUserService userService, IXyqbService xyqbService) { public UserRest(IUserService userService, IXyqbService xyqbService) {
...@@ -148,14 +147,12 @@ public class UserRest { ...@@ -148,14 +147,12 @@ public class UserRest {
@PostMapping(value = "/modify/user_detail") @PostMapping(value = "/modify/user_detail")
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) {
log.info("{}[modifyUserDetail]-begin请求,参数:userId ={},realName = {},idNo = {}", LOG_PRE, userId, realName, idNo); MoResult<String> result = userService.modifyUserDetail(userId, realName, idNO);
MoResult<String> result = userService.modifyUserDetail(userId, realName, idNo); if(!result.isSuccess()){
if (!result.isSuccess()) { return JsonResult.buildErrorStateResult(result.getMsg(),result.getData());
return JsonResult.buildErrorStateResult(result.getMsg(), result.getData()); }
} return JsonResult.buildSuccessResult(result.getMsg(),result.getData());
log.info("{}[modifyUserDetail]-end请求", LOG_PRE);
return JsonResult.buildSuccessResult(result.getMsg(), result.getData());
} }
/** /**
...@@ -165,11 +162,11 @@ public class UserRest { ...@@ -165,11 +162,11 @@ 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()) { if(!result.isSuccess()){
return JsonResult.buildErrorStateResult(result.getMsg(), result.getData()); 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 { ...@@ -180,10 +177,10 @@ public class UserRest {
@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);
if (!result.isSuccess()) { if(!result.isSuccess()){
return JsonResult.buildErrorStateResult(result.getMsg(), result.getData()); 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 { ...@@ -194,16 +191,15 @@ 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()) { if(!result.isSuccess()){
return JsonResult.buildErrorStateResult(result.getMsg(), result.getData()); return JsonResult.buildErrorStateResult(result.getMsg(),result.getData());
} }
return JsonResult.buildSuccessResult(result.getMsg(), result.getData()); return JsonResult.buildSuccessResult(result.getMsg(),result.getData());
} }
/** /**
* 查询用户详细信息(根据手机号或身份证号查询) * 查询用户详细信息(根据手机号或身份证号查询)
*
* @param userQueryParam * @param userQueryParam
* @return * @return
*/ */
...@@ -245,4 +241,6 @@ public class UserRest { ...@@ -245,4 +241,6 @@ public class UserRest {
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment