forked from liweijie/education
学员学籍异动申请新增报错
This commit is contained in:
+8
-3
@@ -2,6 +2,8 @@ package com.roomroot.web.controller.jwgl;
|
||||
|
||||
import com.roomroot.common.exception.ServiceException;
|
||||
import com.roomroot.common.utils.file.FileUtils;
|
||||
import com.roomroot.jwgl.service.TeachingMaterialService;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
@@ -23,6 +25,9 @@ public class DownloadController {
|
||||
|
||||
private static final String TEMPLATE_DIR = "file/";
|
||||
|
||||
@Resource
|
||||
private TeachingMaterialService teachingMaterialService;
|
||||
|
||||
/**
|
||||
* 人才培养方案课程数据文件模板
|
||||
*/
|
||||
@@ -56,11 +61,11 @@ public class DownloadController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 教材管理模板
|
||||
* 教材管理模板(动态生成,与 /teachingMaterial/template 一致)
|
||||
*/
|
||||
@GetMapping("/teaching-material")
|
||||
public void downloadTeachingMaterial(HttpServletResponse response) throws IOException {
|
||||
downloadTemplate(response, "教材管理.xls");
|
||||
public void downloadTeachingMaterial(HttpServletResponse response) {
|
||||
teachingMaterialService.downloadTemplate(response);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user