|
@@ -107,6 +107,9 @@ public class StudentApplyController extends BaseController {
|
|
|
if (Role.TEACHING.equals(user.getRole())) {
|
|
|
teachingId = user.getCategoryId();
|
|
|
}
|
|
|
+ if(teachingId == null) {
|
|
|
+ throw new StatusException("请选择教学点");
|
|
|
+ }
|
|
|
List<Map<String, Object>> failRecords = new ArrayList<Map<String, Object>>();
|
|
|
try {
|
|
|
failRecords = studentApplyService.importPreExam(user.getId(), teachingId, level, file.getInputStream());
|