修改用户信息和学习信息

beetlsql3-dev
Mlxa0324 2 years ago
parent 9c69cef5d2
commit 1c065a3efd

@ -151,8 +151,8 @@ public class CoreUserController {
coreUser.setJobType1(null);
coreUser.setId(null);
// 包含用户密码拷贝
BeanUtil.copyProperties(coreUser, user);
user.setPassword(passwordEncryptService.password(coreUser.getPassword()));
userService.update(user);
return JsonResult.success();
}

@ -1637,13 +1637,8 @@ public class StudentController{
return JsonResult.failMessage("请登录后再操作");
}
Student s = new Student();
s.setStudentId(student.getStudentId());
s.setHeadImg(null != fileEntity?fileEntity.getUrl():null);
s.setStudentMobile(studentQuery.getStudentMobile());
s.setStudentEmail(StringUtils.isNotBlank(studentQuery.getStudentEmail())?studentQuery.getStudentEmail():"");
boolean success = studentService.updateTemplate(s);
studentQuery.setStudentId(student.getStudentId());
boolean success = studentService.updateTemplate(studentQuery.pojo());
if (success) {
//更新缓存
updateByIds(student.getId());

Loading…
Cancel
Save