学号
This commit is contained in:
@@ -230,7 +230,10 @@ public class SchStudentController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("importStudents")
|
@PostMapping("importStudents")
|
||||||
public void importStudents(@RequestPart("file") MultipartFile file) {
|
public void importStudents(@RequestPart("file") MultipartFile file,
|
||||||
|
@RequestParam(required = false) Integer schsystemId,
|
||||||
|
@RequestParam(required = false) Integer gradeId,
|
||||||
|
@RequestParam(required = false) Integer classId) {
|
||||||
schStudentService.importStudents(UserContext.getCurrentUser(),file);
|
schStudentService.importStudents(UserContext.getCurrentUser(),file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class StudentClassNoExcelColumn {
|
|||||||
private String gradeName;
|
private String gradeName;
|
||||||
|
|
||||||
@NotBlank(message = StudentClassNoExcelColumn.CLAZZ_NAME+"不能为空")
|
@NotBlank(message = StudentClassNoExcelColumn.CLAZZ_NAME+"不能为空")
|
||||||
@Size(max = 20, message = StudentClassNoExcelColumn.GRADE_NAME +"长度不能超过20")
|
@Size(max = 20, message = StudentClassNoExcelColumn.CLAZZ_NAME +"长度不能超过20")
|
||||||
@Excel(name = StudentClassNoExcelColumn.CLAZZ_NAME)
|
@Excel(name = StudentClassNoExcelColumn.CLAZZ_NAME)
|
||||||
private String clazzName;
|
private String clazzName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user