From 86275b8b9f1f9c2cabd28443b50e8eb79bc25888 Mon Sep 17 00:00:00 2001 From: du <1725534722@qq.com> Date: Fri, 11 Apr 2025 16:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8D=95=E7=89=87=E6=9D=90?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/gysl/controller/BasicInformationController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/gysl/controller/BasicInformationController.java b/ruoyi-admin/src/main/java/com/ruoyi/gysl/controller/BasicInformationController.java index 86ec07c..bb1305f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/gysl/controller/BasicInformationController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/gysl/controller/BasicInformationController.java @@ -345,12 +345,12 @@ public class BasicInformationController extends BaseController { @ApiOperation(value = "导出单片材料") @PostMapping("/wordExport") - public void wordExport(HttpServletResponse response, @RequestBody List ids) throws Exception { + public void wordExport(HttpServletResponse response, @RequestParam String ids) throws Exception { List sysDictData = sysDictDataMapper.selectDictDataList(new SysDictData()); String fatherFile = fileAddress + "/项目压缩文件"; FileUtil.mkdir(fatherFile); - for (long id : ids) { - BasicInformationResponse a1 = basicInformationService.selectOne(id); + for (String id : ids.split(",")) { + BasicInformationResponse a1 = basicInformationService.selectOne(Long.valueOf(id)); Map map = new HashMap<>(); map.put("issuingTime", a1.getBasicInformation().getIssuingTime() != null ? a1.getBasicInformation().getIssuingTime() : "/"); map.put("jsjd", a1.getBasicInformation().getJsjd() != null ? a1.getBasicInformation().getJsjd() : "/");