|
|
|
@ -19,6 +19,7 @@ import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.service.CorePlatformService;
|
|
|
|
|
import com.ibeetl.admin.core.service.CoreUserService;
|
|
|
|
|
import com.ibeetl.admin.core.util.BeanCopyUtil;
|
|
|
|
|
import com.ibeetl.admin.core.util.HttpRequestLocal;
|
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
|
import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
@ -66,6 +67,7 @@ import static cn.jlw.token.TokenService.updateByIds;
|
|
|
|
|
import static cn.jlw.util.CacheUserUtil.getStudent;
|
|
|
|
|
import static cn.jlw.util.excel.ExcelUtil.standardName;
|
|
|
|
|
import static com.ibeetl.admin.console.service.OrgConsoleService.setObjectOrgId;
|
|
|
|
|
import static com.ibeetl.admin.core.service.CorePlatformService.T_STUDENT;
|
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.convertData;
|
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.write;
|
|
|
|
|
import static com.ibeetl.admin.core.util.excelGroupValidation.ExcelUtil.createExcel;
|
|
|
|
@ -140,6 +142,9 @@ public class StudentController extends BaseController{
|
|
|
|
|
@Autowired
|
|
|
|
|
private UniversityFacultyService universityFacultyService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private HttpRequestLocal httpRequestLocal;
|
|
|
|
|
|
|
|
|
|
/* 前端接口 */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -1654,6 +1659,15 @@ public class StudentController extends BaseController{
|
|
|
|
|
if (success) {
|
|
|
|
|
//更新缓存
|
|
|
|
|
updateByIds(student.getId().toString());
|
|
|
|
|
if (StringUtils.isNotBlank(studentQuery.getHeadImg())){
|
|
|
|
|
student.setHeadImg(studentQuery.getHeadImg());
|
|
|
|
|
Object sessionValue = httpRequestLocal.getSessionValue(T_STUDENT);
|
|
|
|
|
if(null != sessionValue){
|
|
|
|
|
Student bean = (Student) sessionValue;
|
|
|
|
|
bean.setHeadImg(studentQuery.getHeadImg());
|
|
|
|
|
httpRequestLocal.setSessionValue(T_STUDENT,bean);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
} else {
|
|
|
|
|
return JsonResult.failMessage("更新失败");
|
|
|
|
|