|
@@ -3,6 +3,7 @@ package com.community.huiju.controller;
|
3
|
3
|
|
4
|
4
|
import com.community.commom.mode.ResponseBean;
|
5
|
5
|
import com.community.huiju.common.base.BaseController;
|
|
6
|
+import com.community.huiju.model.BuildingOwnerInfo;
|
6
|
7
|
import com.community.huiju.service.IBuildingOwnerInfoService;
|
7
|
8
|
import io.swagger.annotations.Api;
|
8
|
9
|
import io.swagger.annotations.ApiImplicitParam;
|
|
@@ -14,6 +15,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
14
|
15
|
import org.springframework.web.bind.annotation.RequestMethod;
|
15
|
16
|
import org.springframework.web.bind.annotation.RestController;
|
16
|
17
|
|
|
18
|
+import java.util.List;
|
|
19
|
+
|
17
|
20
|
/**
|
18
|
21
|
* <p>
|
19
|
22
|
* 楼栋业主资料信息表 前端控制器
|
|
@@ -46,13 +49,43 @@ public class BuildingOwnerInfoController extends BaseController {
|
46
|
49
|
|
47
|
50
|
@ApiOperation(value = "修改楼栋业务信息", notes = "修改楼栋业主信息")
|
48
|
51
|
@ApiImplicitParams({
|
49
|
|
- @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter",value = "building栋;" +
|
|
52
|
+ @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter",value = "id编号;building栋;" +
|
50
|
53
|
"unit单元;level楼层;roomNo户号;" +
|
51
|
54
|
"ownerName业主姓名;" +
|
52
|
|
- "ownerTel业主手机号")
|
|
55
|
+ "ownerTel业主手机号"),
|
|
56
|
+ @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
|
53
|
57
|
})
|
|
58
|
+ @RequestMapping(value = "update", method = RequestMethod.PUT)
|
54
|
59
|
public ResponseBean update(@RequestBody String parameter){
|
55
|
60
|
ResponseBean responseBean = new ResponseBean();
|
|
61
|
+ responseBean = iBuildingOwnerInfoService.update(parameter);
|
|
62
|
+ return responseBean;
|
|
63
|
+ }
|
|
64
|
+
|
|
65
|
+ @ApiOperation(value = "添加楼栋业务信息", notes = "添加楼栋业务信息")
|
|
66
|
+ @ApiImplicitParams({
|
|
67
|
+ @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "id编号;building栋;" +
|
|
68
|
+ "unit单元;level楼层;roomNo户号;" +
|
|
69
|
+ "ownerName业主姓名;" +
|
|
70
|
+ "ownerTel业主手机号"),
|
|
71
|
+ @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
|
|
72
|
+ })
|
|
73
|
+ @RequestMapping(value = "add", method = RequestMethod.POST)
|
|
74
|
+ public ResponseBean add(String parameter){
|
|
75
|
+ ResponseBean responseBean = new ResponseBean();
|
|
76
|
+ responseBean = iBuildingOwnerInfoService.add(parameter);
|
|
77
|
+ return responseBean;
|
|
78
|
+ }
|
|
79
|
+
|
|
80
|
+ @ApiOperation(value = "批量删除楼栋业主信息", notes = "批量删除楼栋业主信息")
|
|
81
|
+ @ApiImplicitParams({
|
|
82
|
+ @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "ids"),
|
|
83
|
+ @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
|
|
84
|
+ })
|
|
85
|
+ @RequestMapping(value = "delete", method = RequestMethod.DELETE)
|
|
86
|
+ public ResponseBean delete(@RequestBody List<Integer> ids){
|
|
87
|
+ ResponseBean responseBean = new ResponseBean();
|
|
88
|
+ responseBean = iBuildingOwnerInfoService.deleteByIdDatch(ids);
|
56
|
89
|
return responseBean;
|
57
|
90
|
}
|
58
|
91
|
|