From 276818f5db0125c215ccd118dc7162172b92e3b3 Mon Sep 17 00:00:00 2001
From: whywhyo <1511349576@qq.com>
Date: 星期二, 23 五月 2023 17:35:47 +0800
Subject: [PATCH] 456

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetNoteController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetNoteController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetNoteController.java
index a9c0085..04b4b1f 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetNoteController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfPetNoteController.java
@@ -53,7 +53,7 @@
      * 鏍规嵁瀹犵墿id鑾峰彇鐩稿叧澶囧繕褰�
      */
     @GetMapping
-    public AjaxResult getByPetId(@PathParam("pid")Long pid){
+    public AjaxResult getByPetId(@PathParam("pid")String pid){
         return zfPetNoteService.getAllPetNoteByPetId(pid);
     }
 
@@ -61,11 +61,11 @@
     /**
      * 鑾峰彇瀵煎叆妯℃澘
      */
-    @GetMapping("/model")
+    @PostMapping("/model")
     public void getExportModel(HttpServletResponse response){
         List<ZfPetNote> list = Collections.singletonList(new ZfPetNote());
         ExcelUtil<ZfPetNote> util = new ExcelUtil<>(ZfPetNote.class);
-        util.exportExcel(response,list,"榄呭疇澶囧繕褰曡褰曟暟鎹�");
+        util.exportExcel(response,list,"榄呭疇澶囧繕褰曞鍏ユā鏉�");
     }
 
 
@@ -88,7 +88,7 @@
      */
     @Log(title = "鐢ㄦ埛绠$悊", businessType = BusinessType.IMPORT)
     @PostMapping("/importData/{pid}")
-    public AjaxResult importData(@RequestParam("excelImport") MultipartFile file,@PathVariable Long pid) throws Exception
+    public AjaxResult importData(@RequestParam("excelImport") MultipartFile file,@PathVariable String pid) throws Exception
     {
         ExcelUtil<ZfPetNote> util = new ExcelUtil<>(ZfPetNote.class);
         List<ZfPetNote> eventList = util.importExcel(file.getInputStream());

--
Gitblit v1.9.1