Commit 141fb3ff authored by xiaozhe.chen's avatar xiaozhe.chen

迁移谛听功能

parent 1f4d1b2e
......@@ -203,7 +203,7 @@ public class UserRest {
* @param userQueryParam
* @return
*/
@PostMapping(value = "/detail")
@GetMapping(value = "/detail")
public JsonResult findUserDetail(UserQueryParam userQueryParam) {
JsonResult<UserBasicInfo> userInfo = userService.findUserInfo(userQueryParam);
if (!userInfo.isSuccess()) {
......@@ -218,9 +218,15 @@ public class UserRest {
* @param userQueryParam
* @return
*/
@PostMapping(value = "/card_list")
@GetMapping(value = "/card_list")
public JsonResult findUserCardList(UserQueryParam userQueryParam) {
Map<String, Object> result = Maps.newHashMap();
String phoneNo = userQueryParam.getPhoneNo();
if (StringUtils.isNotEmpty(phoneNo)) {
if (!(phoneNo.length() == 11 && StringUtils.isNumeric(phoneNo))) {
return JsonResult.buildErrorStateResult("手机号错误", null);
}
}
JsonResult<UserBasicInfo> userInfo = userService.findUserInfo(userQueryParam);
if (userInfo != null && userInfo.isSuccess() && userInfo.getData() != null) {
UserBasicInfo userBasicInfo = userInfo.getData();
......@@ -228,6 +234,8 @@ public class UserRest {
Long userId = userBasicInfo.getUserId();
List<UserCardInfo> userPayCardList = xyqbService.findUserPayCardList(userId);
result.put("cardInfo", userPayCardList);
} else {
return JsonResult.buildErrorStateResult("查无此人", null);
}
return JsonResult.buildSuccessResult("success", result);
}
......
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