From e5664ae4f33affb9ae74622650591a311b7fbddc Mon Sep 17 00:00:00 2001 From: songwenxuan <1924103812@qq.com> Date: Fri, 22 Dec 2023 09:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=98=B2=E8=B5=84=E6=BA=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AF=B9=E6=8E=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/firemanager/FireResourcesController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/zcloud/controller/firemanager/FireResourcesController.java b/src/main/java/com/zcloud/controller/firemanager/FireResourcesController.java index cc420ca7..7420a1e6 100644 --- a/src/main/java/com/zcloud/controller/firemanager/FireResourcesController.java +++ b/src/main/java/com/zcloud/controller/firemanager/FireResourcesController.java @@ -1,5 +1,8 @@ package com.zcloud.controller.firemanager; +import com.alibaba.fastjson.JSON; +import com.fasterxml.jackson.databind.annotation.JacksonStdImpl; +import com.zcloud.aspect.DockAnnotation; import com.zcloud.controller.base.BaseController; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; @@ -53,6 +56,7 @@ public class FireResourcesController extends BaseController { @RequestMapping(value = "/add") @ResponseBody + @DockAnnotation(isAdd = true) public Object add(@RequestParam(value="FFILE",required=false) MultipartFile[] files) throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -64,11 +68,13 @@ public class FireResourcesController extends BaseController { pd.put("ISDELETE", "0"); fireResourcesService.save(pd,files); map.put("result", errInfo); + map.put("dockData", JSON.toJSONString(pd)); return map; } @RequestMapping(value = "/edit") @ResponseBody + @DockAnnotation public Object edit(@RequestParam(value="FFILE",required=false) MultipartFile[] files) throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -83,6 +89,7 @@ public class FireResourcesController extends BaseController { @RequestMapping(value = "/delete") @ResponseBody + @DockAnnotation public Object delete(Page page) { Map map = new HashMap(); String errInfo = "success";