From 07c4ad96c75dc93b39e002feb19845219fede415 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 29 十一月 2024 16:49:09 +0800 Subject: [PATCH] 全部事项和待办事项查询功能完善 --- business/src/main/java/com/ycl/controller/ProjectInfoController.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/business/src/main/java/com/ycl/controller/ProjectInfoController.java b/business/src/main/java/com/ycl/controller/ProjectInfoController.java index f2e314c..768ed26 100644 --- a/business/src/main/java/com/ycl/controller/ProjectInfoController.java +++ b/business/src/main/java/com/ycl/controller/ProjectInfoController.java @@ -4,6 +4,8 @@ import com.ycl.common.group.Add; import com.ycl.common.group.Update; import com.ycl.common.utils.ProjectCodeGenerator; +import com.ycl.common.utils.excel.OutputExcelUtils; +import com.ycl.domain.excel.ProjectExcelTemplate; import com.ycl.domain.form.DocumentInfoForm; import com.ycl.domain.form.ProjectInfoForm; import com.ycl.domain.query.ProjectInfoQuery; @@ -14,7 +16,9 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import javax.servlet.http.HttpServletResponse; import javax.validation.constraints.NotEmpty; +import java.io.IOException; import java.util.List; /** @@ -104,4 +108,17 @@ public Result getManagerFlag(@PathVariable("recordId") Integer recordId) { return projectInfoService.getManagerFlag(recordId); } + + /** + * 瀵煎嚭妯℃澘 + * @param response + * @return + */ + @PostMapping("/export/template") + public void exportTemplate(HttpServletResponse response, + @RequestBody List<String> fieldList + ) throws IOException { + OutputExcelUtils.export(response, "瀵煎叆妯℃澘", "椤圭洰淇℃伅", null, ProjectExcelTemplate.class ,fieldList); + } + } -- Gitblit v1.8.0