From 8c4314fb832c3f554cfa1c8a502e66ce42f31986 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Wed, 31 Aug 2022 11:39:38 +0800 Subject: [PATCH] =?UTF-8?q?PC=E8=AF=8A=E6=96=AD=E8=AE=B0=E5=BD=95=20?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/pc/TRecordController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java index d8ae8c1..39e771c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java @@ -18,6 +18,7 @@ import io.swagger.annotations.ApiOperation; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -60,8 +61,9 @@ public class TRecordController extends BaseController */ @Log(title = "诊断记录信息导出", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, TRecordResultReq tRecord) + public void export(HttpServletResponse response, @RequestBody @Validated TRecordResultReq tRecord) { + startPage(); List list = tRecordService.selectTRecordListWithoutResult(tRecord); ExcelUtil util = new ExcelUtil<>(TRecordResp.class); util.exportExcel(response, list, "诊断记录信息数据");