提交 960d6643 作者: zhenjie

手机号查询用户修改

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