|
|
|
@ -247,6 +247,7 @@ public class AchievementManagementServiceImpl extends ServiceImpl<AchievementMan |
|
|
|
|
for (int i = 0; i < split.length; i++) { |
|
|
|
|
list.add(Integer.parseInt(split[i])); |
|
|
|
|
} |
|
|
|
|
//source 1.练习 2考核
|
|
|
|
|
switch (source) { |
|
|
|
|
case 1: |
|
|
|
|
//1.获取数据
|
|
|
|
@ -261,8 +262,12 @@ public class AchievementManagementServiceImpl extends ServiceImpl<AchievementMan |
|
|
|
|
case 2: |
|
|
|
|
//1.获取数据
|
|
|
|
|
|
|
|
|
|
Integer id = Integer.valueOf(list.get(0)); |
|
|
|
|
List<ImportAssessmentRequest> assessment = achievementManagementDao.queryAchievementByAssessment(id); |
|
|
|
|
/*List<ImportAssessmentRequest> assessment = null; |
|
|
|
|
for (Integer id : list) { |
|
|
|
|
assessment = achievementManagementDao.queryAchievementByAssessment(id); |
|
|
|
|
}*/ |
|
|
|
|
//Integer id = Integer.valueOf(list.get(0));
|
|
|
|
|
List<ImportAssessmentRequest> assessment = achievementManagementDao.queryAchievementByAssessment(list); |
|
|
|
|
|
|
|
|
|
//2.加载模板流数据
|
|
|
|
|
ClassPathResource resource1 = new ClassPathResource("excel-template/川大成绩管理实验记录导出模板 (2).xlsx"); |
|
|
|
|