Kaynağa Gözat

奖助学金导入

dzx 1 yıl önce
ebeveyn
işleme
5cb4731bf7

+ 2 - 8
src/main/java/com/xjrsoft/module/student/controller/BaseStudentScholarshipReleaseController.java

@@ -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);
     }
 }