消防资源管理对接代码
parent
61c7075d4c
commit
e5664ae4f3
|
@ -1,5 +1,8 @@
|
||||||
package com.zcloud.controller.firemanager;
|
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.controller.base.BaseController;
|
||||||
import com.zcloud.entity.Page;
|
import com.zcloud.entity.Page;
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
|
@ -53,6 +56,7 @@ public class FireResourcesController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = "/add")
|
@RequestMapping(value = "/add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation(isAdd = true)
|
||||||
public Object add(@RequestParam(value="FFILE",required=false) MultipartFile[] files) throws Exception {
|
public Object add(@RequestParam(value="FFILE",required=false) MultipartFile[] files) throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -64,11 +68,13 @@ public class FireResourcesController extends BaseController {
|
||||||
pd.put("ISDELETE", "0");
|
pd.put("ISDELETE", "0");
|
||||||
fireResourcesService.save(pd,files);
|
fireResourcesService.save(pd,files);
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/edit")
|
@RequestMapping(value = "/edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object edit(@RequestParam(value="FFILE",required=false) MultipartFile[] files) throws Exception {
|
public Object edit(@RequestParam(value="FFILE",required=false) MultipartFile[] files) throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -83,6 +89,7 @@ public class FireResourcesController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = "/delete")
|
@RequestMapping(value = "/delete")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object delete(Page page) {
|
public Object delete(Page page) {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
|
Loading…
Reference in New Issue