|
@@ -0,0 +1,45 @@
|
|
1
|
+package com.huiju.estateagents.property.controller;
|
|
2
|
+
|
|
3
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
4
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
5
|
+import com.huiju.estateagents.base.BaseController;
|
|
6
|
+import com.huiju.estateagents.base.ResponseBean;
|
|
7
|
+import com.huiju.estateagents.property.model.TpRoomNo;
|
|
8
|
+import com.huiju.estateagents.property.service.BuildingTreeServiceI;
|
|
9
|
+import io.swagger.annotations.Api;
|
|
10
|
+import io.swagger.annotations.ApiOperation;
|
|
11
|
+import io.swagger.annotations.ApiParam;
|
|
12
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
13
|
+import org.springframework.web.bind.annotation.*;
|
|
14
|
+
|
|
15
|
+import javax.servlet.http.HttpServletRequest;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+@Api(tags = "楼栋房源信息表 ")
|
|
19
|
+@RestController
|
|
20
|
+@RequestMapping("/api/{client}/buildingInfo/building-room")
|
|
21
|
+public class TpRoomNoController extends BaseController {
|
|
22
|
+
|
|
23
|
+ @Autowired
|
|
24
|
+ BuildingTreeServiceI buildingTreeService;
|
|
25
|
+
|
|
26
|
+ @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
|
27
|
+ @GetMapping("/list")
|
|
28
|
+ public ResponseBean getList(@ApiParam(value = "客户端", allowableValues = "admin") @PathVariable String client,
|
|
29
|
+ @ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
|
30
|
+ @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
31
|
+ @ApiParam("期数ID") @RequestParam(value ="phaseId", required = false) Integer phaseId,
|
|
32
|
+ @ApiParam("楼栋ID") @RequestParam(value ="buildingId", required = false) Integer buildingId,
|
|
33
|
+ @ApiParam("单元ID") @RequestParam(value ="unitId", required = false) Integer unitId,
|
|
34
|
+ @ApiParam("楼层ID") @RequestParam(value ="levelId", required = false) Integer levelId,
|
|
35
|
+ @ApiParam("户号ID") @RequestParam(value ="roomNoId", required = false) Integer roomNoId,
|
|
36
|
+ HttpServletRequest request) {
|
|
37
|
+ Integer orgId = getOrgId(request);
|
|
38
|
+ IPage<TpRoomNo> page = new Page<>(pageNum, pageSize);
|
|
39
|
+
|
|
40
|
+ IPage<TpRoomNo> result = buildingTreeService.getRoomList(page, orgId, phaseId, buildingId, unitId, levelId, roomNoId);
|
|
41
|
+
|
|
42
|
+ return ResponseBean.success(result);
|
|
43
|
+ }
|
|
44
|
+
|
|
45
|
+}
|