From b85a7f932b9d789a2e9bdb36e366c36c2e1eb3cc Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期四, 17 四月 2025 11:31:53 +0800 Subject: [PATCH] 查询考核成绩为null,为前端添加数据默认为0 --- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java index 32d1f22..48f4102 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java @@ -83,7 +83,7 @@ /** * 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:monitor:query')") + @PreAuthorize("@ss.hasPermi('system:monitor:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -93,7 +93,7 @@ /** * 鏂板璁惧璧勪骇 */ - @PreAuthorize("@ss.hasPermi('system:monitor:add')") + @PreAuthorize("@ss.hasPermi('system:monitor:add')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TMonitor tMonitor) @@ -142,6 +142,14 @@ { return success(tMonitorService.recoveryException(monitor)); } - + /** + * 瀵煎嚭 + */ + @PreAuthorize("@ss.hasPermi('system:monitor:export')") + @Log(title = "瀵煎嚭", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response,TMonitorVO tMonitor) throws IOException, NoSuchFieldException, IllegalAccessException { + tMonitorService.export(response,tMonitor); + } } -- Gitblit v1.8.0