|
@@ -272,8 +272,10 @@ public class UserController {
|
|
|
}
|
|
|
if (user.getSupervisorId() != null && (Objects.equals(user.getUserType(), "1") || Objects.equals(user.getUserType(), "2"))) {
|
|
|
AdminUserDO supervisorUser = userService.getUser(user.getSupervisorId());
|
|
|
- String supervisor = supervisorUser.getNickname();
|
|
|
- user.setSupervisor(supervisor);
|
|
|
+ if (supervisorUser!=null) {
|
|
|
+ String supervisor = supervisorUser.getNickname();
|
|
|
+ user.setSupervisor(supervisor);
|
|
|
+ }
|
|
|
}
|
|
|
// 拼接数据
|
|
|
DeptDO dept = deptService.getDept(user.getDeptId());
|
|
@@ -417,7 +419,7 @@ public class UserController {
|
|
|
})
|
|
|
@PreAuthorize("@ss.hasPermission('system:user:importGraduateStudent')")
|
|
|
public CommonResult<UserImportRespVO> importGraduateExcel(@RequestParam("file") MultipartFile file,
|
|
|
- @RequestParam(value = "updateSupport", required = false, defaultValue = "false") Boolean updateSupport) throws Exception {
|
|
|
+ @RequestParam(value = "updateSupport", required = false, defaultValue = "false") Boolean updateSupport) throws Exception {
|
|
|
List<graduateStudentImportExcelVO> list = ExcelUtils.read(file, graduateStudentImportExcelVO.class);
|
|
|
|
|
|
return success(userService.importGraduateList(list, updateSupport));
|