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, "诊断记录信息数据");