修改用户信息和学习信息

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

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

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

Loading…
Cancel
Save