|
|
@@ -156,13 +156,7 @@ public class BaseStudentScholarshipReleaseController {
|
|
|
@PostMapping("/import")
|
|
|
@ApiOperation(value = "成绩导入")
|
|
|
public RT<List<Map<String, String>>> scoreImport(@RequestParam MultipartFile file) throws IOException {
|
|
|
- List<ScholarshipApplicantImportVo> errorList = applicantService.importData(file);
|
|
|
- List<Map<String, String>> result = new ArrayList<>();
|
|
|
-
|
|
|
- for (ScholarshipApplicantImportVo objectMap : errorList) {
|
|
|
- Map<String, String> object = new LinkedHashMap<>();
|
|
|
- result.add(object);
|
|
|
- }
|
|
|
- return RT.ok(result);
|
|
|
+ List<Map<String, String>> maps = applicantService.importData(file);
|
|
|
+ return RT.ok(maps);
|
|
|
}
|
|
|
}
|