|
|
|
@ -193,7 +193,7 @@ public class ApiStudentService {
|
|
|
|
|
|
|
|
|
|
// 密码遵循加密算法
|
|
|
|
|
dto.setNewPwd(passwordEncryptService.password(dto.getNewPwd()));
|
|
|
|
|
dto.setOldPwd(passwordEncryptService.password(dto.getOldPwd()));
|
|
|
|
|
// dto.setOldPwd(passwordEncryptService.password(dto.getOldPwd()));
|
|
|
|
|
|
|
|
|
|
// 传入的院校ID
|
|
|
|
|
final Long universitiesCollegesId = dto.getUniversitiesCollegesId();
|
|
|
|
@ -212,11 +212,15 @@ public class ApiStudentService {
|
|
|
|
|
Assert.isTrue(studentDao.templateCount(entity) > 0, "学生姓名不存在!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Student studentInfo = studentDao.getStudentByStudentEditPasswordDTO(dto);
|
|
|
|
|
Assert.notNull(studentInfo, "原始密码错误!");
|
|
|
|
|
// Student studentInfo = studentDao.getStudentByStudentEditPasswordDTO(dto);
|
|
|
|
|
// Assert.notNull(studentInfo, "原始密码错误!");
|
|
|
|
|
|
|
|
|
|
Student studentInfo = studentDao.getStudentByStudentEditPasswordNotVerifyDTO(dto);
|
|
|
|
|
Assert.notNull(studentInfo, "未查询到学生");
|
|
|
|
|
|
|
|
|
|
// 根据旧密码修改新密码
|
|
|
|
|
Boolean updateSuccess = coreUserService.editPwdByOld(dto.getOldPwd(), dto.getNewPwd(), studentInfo.getUserId());
|
|
|
|
|
// Boolean updateSuccess = coreUserService.editPwdByOld(dto.getOldPwd(), dto.getNewPwd(), studentInfo.getUserId());
|
|
|
|
|
Boolean updateSuccess = coreUserService.editPwdByOldNotVerify( dto.getNewPwd(), studentInfo.getUserId());
|
|
|
|
|
Assert.isTrue(updateSuccess, "密码修改失败!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|