From b39a20d6b37f96e1d44c6c194ce56bd30593e3ad Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期四, 29 八月 2024 22:20:31 +0800 Subject: [PATCH] 登录用用户昵称了 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSelfNoteController.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSelfNoteController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSelfNoteController.java index aa5e2a4..c998d5d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSelfNoteController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZSelfNoteController.java @@ -16,6 +16,7 @@ import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; +import javax.websocket.server.PathParam; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -52,14 +53,14 @@ * 鏍规嵁id鏌ヨ */ @GetMapping() - public AjaxResult listById(Long id){ + public AjaxResult listById(@PathParam("id") Long id){ return AjaxResult.success(zSelfNoteService.getById(id)); } /** * 妯℃澘 */ - @GetMapping("/model") + @PostMapping("/model") public void getModel(HttpServletResponse response){ ZSelfNote zSelfNote = new ZSelfNote(); List<ZSelfNote> emptyList = Collections.singletonList(zSelfNote); @@ -72,8 +73,18 @@ */ // @PreAuthorize("@ss.hasPermi('system:property:export')") @Log(title = "涓汉璁颁簨鏈褰�", businessType = BusinessType.EXPORT) - @PostMapping("/export/{ids}") - public void export(HttpServletResponse response,@PathVariable Long[] ids) + @PostMapping("/export") + public void export(HttpServletResponse response) + { + List<ZSelfNote> list = zSelfNoteService.selectByCondition(); + log.info("瀵煎嚭璁板綍涓�:{}",list); + ExcelUtil<ZSelfNote> util = new ExcelUtil<>(ZSelfNote.class); + util.exportExcel(response, list, "涓汉璁颁簨鏈褰曟暟鎹�"); + } + + @Log(title = "涓汉璁颁簨鏈褰�", businessType = BusinessType.EXPORT) + @PostMapping("/export1/{ids}") + public void export1(HttpServletResponse response,@PathVariable Long[] ids) { List<ZSelfNote> list = zSelfNoteService.selectByIds(ids); log.info("瀵煎嚭璁板綍涓�:{}",list); -- Gitblit v1.9.1