|
|
@ -228,7 +228,8 @@ public class UserLoginServiceImpl extends ServiceImpl<UserLoginDao, UserEntity> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//根据手机号查询相关信息
|
|
|
|
//根据手机号查询相关信息
|
|
|
|
UserEntity userEntity = baseMapper.selectByPhoneAccount(user.getPhoneAccount()); |
|
|
|
//UserEntity userEntity = baseMapper.selectByPhoneAccount(user.getPhoneAccount());
|
|
|
|
|
|
|
|
UserEntity userEntity=baseMapper.selectByManagerId(); |
|
|
|
if(userEntity == null){ |
|
|
|
if(userEntity == null){ |
|
|
|
ExceptionCast.cast(HrmsCode.PHNOE_ACCOUNT_NOT_EXIST); |
|
|
|
ExceptionCast.cast(HrmsCode.PHNOE_ACCOUNT_NOT_EXIST); |
|
|
|
} |
|
|
|
} |
|
|
@ -249,8 +250,8 @@ public class UserLoginServiceImpl extends ServiceImpl<UserLoginDao, UserEntity> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String newMD5 = Md5Util.md5(user.getNewPwd()+userEntity.getId()); |
|
|
|
String newMD5 = Md5Util.md5(user.getNewPwd()+userEntity.getId()); |
|
|
|
//根据手机号码修改密码
|
|
|
|
//修改平台超管密码
|
|
|
|
int i = userLoginDao.updatePasswordByPhoneAccount(user.getPhoneAccount(),newMD5); |
|
|
|
int i = userLoginDao.updateManagePassword(newMD5); |
|
|
|
return i > 0; |
|
|
|
return i > 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|