|
@@ -579,6 +579,11 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
if (student == null) {
|
|
|
throw new BizException("学生信息不存在");
|
|
|
}
|
|
|
+ String avatar = student.getAvatar();
|
|
|
+ if (StringUtils.isEmpty(avatar)) {
|
|
|
+ avatar = sysConfigService.findConfigValue(SysConfigConstant.TENANT_STUDENT_AVATAR);
|
|
|
+ student.setAvatar(avatar);
|
|
|
+ }
|
|
|
// 解绑
|
|
|
// if (Boolean.FALSE.equals(studentInfo.getBindTenant())) {
|
|
|
// studentInfo.setTenantId(-1L);
|
|
@@ -613,6 +618,12 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
student.setSubjectId(studentInfo.getSubjectId());
|
|
|
student.setCreateTime(new Date());
|
|
|
student.setLockFlag(UserLockFlag.NORMAL);
|
|
|
+ String avatar = studentInfo.getAvatar();
|
|
|
+ if (StringUtils.isEmpty(avatar)) {
|
|
|
+ avatar = sysConfigService.findConfigValue(SysConfigConstant.TENANT_STUDENT_AVATAR);
|
|
|
+ student.setAvatar(avatar);
|
|
|
+ }
|
|
|
+
|
|
|
save(student);
|
|
|
return true;
|
|
|
}
|