Commit 6f8e1c4e authored by lee_mingzhu's avatar lee_mingzhu

增加限制,用户已保存的联系人>=2时,不允许再保存联系人信息

parent 4c828a8a
......@@ -45,6 +45,7 @@ public class InnerController {
@RequestMapping("/user/search/phoneNo")
public JsonResult findByPhoneNo(String phoneNo) {
LOGGER.info("请求search/phoneNo接口");
User user = userService.findByPhoneInDb(phoneNo);
if (user == null) {
return JsonResult.buildErrorStateResult("", null);
......@@ -161,6 +162,7 @@ public class InnerController {
*/
@RequestMapping("/user_detail/search/userId")
public JsonResult findUserDetailByUserId(Long userId){
LOGGER.info("请求/user_detail/search/userId接口");
UserDetail userDetail = userDetailService.findByUserId(userId);
if(userDetail != null){
return JsonResult.buildSuccessResult(null, UserDetailRet.getUserDetail(userDetail));
......
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