|
|
@ -86,9 +86,9 @@ public class UserDjylServiceImpl extends BaseServiceImpl<UserDjylDao, UserDjylEn |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result npmUserRegister(UserDTO userDto) { |
|
|
|
UserDjylEntity entity = ConvertUtils.sourceToTarget(userDto, UserDjylEntity.class); |
|
|
|
Integer flag = baseDao.findByIdCardAndMobile(userDto.getIdentityNo(), userDto.getMobile()); |
|
|
|
Integer flag = baseDao.findByIdCardAndMobile(userDto.getIdentityNo().trim(), userDto.getMobile().trim()); |
|
|
|
if (flag == 1) { |
|
|
|
throw new RenException("手机号码:" + userDto.getMobile() + "已注册,如忘记密码请自行修改密码或联系管理员!"); |
|
|
|
throw new RenException("手机号码:" + userDto.getMobile() + "已注册!"); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(userDto.getNickname())) { |
|
|
|
entity.setNickname(userDto.getNickname()); |
|
|
|