消防资源管理对接代码

pull/14/head
songwenxuan 2023-12-22 09:13:25 +08:00
parent 61c7075d4c
commit e5664ae4f3
1 changed files with 7 additions and 0 deletions

View File

@ -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<String, Object> map = new HashMap<String, Object>();
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<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
@ -83,6 +89,7 @@ public class FireResourcesController extends BaseController {
@RequestMapping(value = "/delete")
@ResponseBody
@DockAnnotation
public Object delete(Page page) {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";