Commit b65af786 authored by 赵浩琳's avatar 赵浩琳

金融调修改手机号接口用原手机号查询用户

parent 2a1f9063
...@@ -309,7 +309,7 @@ public class ModifyPhoneNoServiceImpl implements IModifyPhoneNoService { ...@@ -309,7 +309,7 @@ public class ModifyPhoneNoServiceImpl implements IModifyPhoneNoService {
if (modifyPhoneRecord.getCurPhoneNo().equals(modifyPhoneRecord.getPrevPhoneNo())) { if (modifyPhoneRecord.getCurPhoneNo().equals(modifyPhoneRecord.getPrevPhoneNo())) {
throw new DataException("新手机号已存在,不支持更换"); throw new DataException("新手机号已存在,不支持更换");
} }
User user = userService.findById(modifyPhoneRecord.getUserId()); User user = userService.findByPhoneInDb(modifyPhoneRecord.getPrevPhoneNo());
if (user == null) { if (user == null) {
throw new DataException("用户不存在"); throw new DataException("用户不存在");
} }
......
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