成绩导出修改

hehai
rong.liu 4 years ago
parent a0bcfb01bb
commit 624b427853
  1. 12
      src/main/java/com/msdw/tms/entity/request/AchievementImportRequest.java
  2. 2
      src/main/java/com/msdw/tms/service/impl/AchievementManagementServiceImpl.java
  3. BIN
      src/main/resources/excel-template/川大成绩管理实验记录导出模板 (1).xlsx

@ -15,24 +15,24 @@ public class AchievementImportRequest {
@ExcelAttribute(sort = 0)
private String schoolName;
//实验班级
/* //实验班级
@ExcelAttribute(sort = 1)
private String experimentalClassName;
private String experimentalClassName;*/
//学生姓名
@ExcelAttribute(sort = 2)
@ExcelAttribute(sort = 1)
private String userName;
//学号
@ExcelAttribute(sort = 3)
@ExcelAttribute(sort = 2)
private String workNumber;
//分数
@ExcelAttribute(sort = 4)
@ExcelAttribute(sort = 3)
private String score;
//提交时间
@ExcelAttribute(sort = 5)
@ExcelAttribute(sort = 4)
private String submitTime;
}

@ -199,7 +199,7 @@ public class AchievementManagementServiceImpl extends ServiceImpl<AchievementMan
List<AchievementImportRequest> achievement = achievementManagementDao.queryAchievement(list);
//2.加载模板流数据
ClassPathResource resource = new ClassPathResource("excel-template/川大成绩管理实验记录导出模板.xlsx");
ClassPathResource resource = new ClassPathResource("excel-template/川大成绩管理实验记录导出模板 (1).xlsx");
InputStream inputStream = resource.getInputStream();
//3、通过工具类下载文件

Loading…
Cancel
Save