提交 960d6643 作者: zhenjie

手机号查询用户修改

上级 acc54928
...@@ -164,5 +164,5 @@ public interface UserServiceDao { ...@@ -164,5 +164,5 @@ public interface UserServiceDao {
* @param phoneNum * @param phoneNum
* @return * @return
*/ */
UserAccountDO getUserAccountByPhoneNum(String phoneNum); List<UserAccountDO> getUserAccountByPhoneNum(String phoneNum);
} }
...@@ -314,12 +314,11 @@ public class UserAccountServiceImpl implements UserAccountService { ...@@ -314,12 +314,11 @@ public class UserAccountServiceImpl implements UserAccountService {
@Override @Override
public ResultBody getUserAccountByPhoneNum(String phoneNum) { public ResultBody getUserAccountByPhoneNum(String phoneNum) {
UserAccountDO userAccountDO = userServiceDao.getUserAccountByPhoneNum(phoneNum); List<UserAccountDO> userAccountDOS = userServiceDao.getUserAccountByPhoneNum(phoneNum);
if (userAccountDO != null) { if (!CollectionUtils.isEmpty(userAccountDOS)) {
return ResultBody.success(userAccountDO.buildUserAccountVO()); return ResultBody.success(userAccountDOS.stream().map(UserAccountDO::buildUserAccountVO).collect(Collectors.toList()));
} }
return ResultBody.success(); return ResultBody.success();
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论