|
@@ -605,11 +605,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
}
|
|
|
String avatar = studentInfo.getAvatar();
|
|
|
if (StringUtils.isEmpty(avatar)) {
|
|
|
- if (studentInfo.getGender().equals(1)) {
|
|
|
- avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_BOY);
|
|
|
- } else {
|
|
|
- avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_GIRL);
|
|
|
- }
|
|
|
+ avatar = sysConfigService.findConfigValue(SysConfigConstant.STUDENT_AVATAR);
|
|
|
studentInfo.setAvatar(avatar);
|
|
|
}
|
|
|
// 解绑
|
|
@@ -655,11 +651,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
private Boolean createStudent(StudentWrapper.Student studentInfo) {
|
|
|
String avatar = studentInfo.getAvatar();
|
|
|
if (StringUtils.isEmpty(avatar)) {
|
|
|
- if (studentInfo.getGender().equals(1)) {
|
|
|
- avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_BOY);
|
|
|
- } else {
|
|
|
- avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_GIRL);
|
|
|
- }
|
|
|
+ avatar = sysConfigService.findConfigValue(SysConfigConstant.STUDENT_AVATAR);
|
|
|
studentInfo.setAvatar(avatar);
|
|
|
}
|
|
|
com.yonge.cooleshow.biz.dal.entity.SysUser sysUser = getOrCreateAccount(studentInfo);
|
|
@@ -707,17 +699,11 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
sysUser = JSON.parseObject(JSON.toJSONString(studentInfo),
|
|
|
com.yonge.cooleshow.biz.dal.entity.SysUser.class);
|
|
|
sysUser.setPhone(studentInfo.getPhone());
|
|
|
+ sysUser.setAvatar(studentInfo.getAvatar());
|
|
|
if (StringUtils.isEmpty(studentInfo.getAvatar())) {
|
|
|
//设置默认头像
|
|
|
- String avatar;
|
|
|
- if (studentInfo.getGender().equals(1)) {
|
|
|
- avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_BOY);
|
|
|
- } else {
|
|
|
- avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_GIRL);
|
|
|
- }
|
|
|
+ String avatar = sysConfigService.findConfigValue(SysConfigConstant.STUDENT_AVATAR);
|
|
|
sysUser.setAvatar(avatar);
|
|
|
- } else {
|
|
|
- sysUser.setAvatar(studentInfo.getAvatar());
|
|
|
}
|
|
|
sysUser.setGender(studentInfo.getGender());
|
|
|
sysUser.setUserType("STUDENT");
|