From 06fac01c188df139de9209763044df2d8b3492c5 Mon Sep 17 00:00:00 2001
From: whywhyo <1511349576@qq.com>
Date: 星期一, 05 六月 2023 20:14:21 +0800
Subject: [PATCH] 456

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHonorController.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHonorController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHonorController.java
index d20ca2b..6159e82 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHonorController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHonorController.java
@@ -51,6 +51,14 @@
     }
 
     /**
+     * 鏍规嵁id鏌ヨ
+     */
+    @GetMapping()
+    public AjaxResult listById(Long id){
+        return AjaxResult.success(zHonorService.getById(id));
+    }
+
+    /**
      * 妯℃澘
      */
     @GetMapping("/model")
@@ -66,8 +74,8 @@
      */
 //    @PreAuthorize("@ss.hasPermi('system:property:export')")
     @Log(title = "璇佷欢銆佽崳瑾夈�佽祫璐ㄨ褰�", businessType = BusinessType.EXPORT)
-    @PostMapping("/export/{ids}")
-    public void export(HttpServletResponse response,@PathVariable Long[] ids)
+    @PostMapping(value = {"/export/{ids}","/export"})
+    public void export(HttpServletResponse response,@PathVariable(required = false) Long[] ids)
     {
         List<ZHonor> list = zHonorService.selectByIds(ids);
         log.info("瀵煎嚭璁板綍涓�:{}",list);

--
Gitblit v1.9.1