|
@@ -43,26 +43,26 @@ public class TaHouseController extends BaseController {
|
43
|
43
|
@Autowired
|
44
|
44
|
public ITaHouseService iTaHouseService;
|
45
|
45
|
|
46
|
|
-
|
47
|
|
- /**
|
48
|
|
- * 分页查询列表
|
49
|
|
- * @param pageNum
|
50
|
|
- * @param pageSize
|
51
|
|
- * @return
|
52
|
|
- */
|
53
|
|
- @RequestMapping(value="/mp/taHouse",method= RequestMethod.GET)
|
54
|
|
- @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
55
|
|
- public ResponseBean taHouseList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
56
|
|
- @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
|
57
|
|
-
|
58
|
|
- IPage<TaHouse> pg = new Page<>(pageNum, pageSize);
|
59
|
|
- QueryWrapper<TaHouse> queryWrapper = new QueryWrapper<>();
|
60
|
|
- queryWrapper.eq("status", StatusConstant.NORMAL);
|
61
|
|
- queryWrapper.orderByDesc("create_date");
|
62
|
|
-
|
63
|
|
- IPage<TaHouse> result = iTaHouseService.page(pg, queryWrapper);
|
64
|
|
- return ResponseBean.success(result);
|
65
|
|
- }
|
|
46
|
+//
|
|
47
|
+// /**
|
|
48
|
+// * 分页查询列表
|
|
49
|
+// * @param pageNum
|
|
50
|
+// * @param pageSize
|
|
51
|
+// * @return
|
|
52
|
+// */
|
|
53
|
+// @RequestMapping(value="/mp/taHouse",method= RequestMethod.GET)
|
|
54
|
+// @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
|
55
|
+// public ResponseBean taHouseList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
|
56
|
+// @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
|
|
57
|
+//
|
|
58
|
+// IPage<TaHouse> pg = new Page<>(pageNum, pageSize);
|
|
59
|
+// QueryWrapper<TaHouse> queryWrapper = new QueryWrapper<>();
|
|
60
|
+// queryWrapper.eq("status", StatusConstant.NORMAL);
|
|
61
|
+// queryWrapper.orderByDesc("create_date");
|
|
62
|
+//
|
|
63
|
+// IPage<TaHouse> result = iTaHouseService.page(pg, queryWrapper);
|
|
64
|
+// return ResponseBean.success(result);
|
|
65
|
+// }
|
66
|
66
|
|
67
|
67
|
/**
|
68
|
68
|
* 分页查询列表
|
|
@@ -92,7 +92,7 @@ public class TaHouseController extends BaseController {
|
92
|
92
|
* @param taHouse 实体对象
|
93
|
93
|
* @return
|
94
|
94
|
*/
|
95
|
|
- @RequestMapping(value="/mp/taHouse",method= RequestMethod.POST)
|
|
95
|
+ @RequestMapping(value="/ma/taHouse",method= RequestMethod.POST)
|
96
|
96
|
@ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
|
97
|
97
|
public ResponseBean taHouseAdd(@ApiParam("保存内容") @RequestBody TaHouse taHouse) throws Exception{
|
98
|
98
|
|
|
@@ -107,7 +107,7 @@ public class TaHouseController extends BaseController {
|
107
|
107
|
* 根据id删除对象
|
108
|
108
|
* @param id 实体ID
|
109
|
109
|
*/
|
110
|
|
- @RequestMapping(value="/mp/taHouse/{id}", method= RequestMethod.DELETE)
|
|
110
|
+ @RequestMapping(value="/ma/taHouse/{id}", method= RequestMethod.DELETE)
|
111
|
111
|
@ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
|
112
|
112
|
public ResponseBean taHouseDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
|
113
|
113
|
TaHouse taHouse = iTaHouseService.getById(id);
|
|
@@ -126,7 +126,7 @@ public class TaHouseController extends BaseController {
|
126
|
126
|
* @param taHouse 实体对象
|
127
|
127
|
* @return
|
128
|
128
|
*/
|
129
|
|
- @RequestMapping(value="/mp/taHouse/{id}",method= RequestMethod.PUT)
|
|
129
|
+ @RequestMapping(value="/ma/taHouse/{id}",method= RequestMethod.PUT)
|
130
|
130
|
@ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
|
131
|
131
|
public ResponseBean taHouseUpdate(@ApiParam("对象ID") @PathVariable String id,
|
132
|
132
|
@ApiParam("更新内容") @RequestBody TaHouse taHouse) throws Exception{
|
|
@@ -138,17 +138,6 @@ public class TaHouseController extends BaseController {
|
138
|
138
|
}
|
139
|
139
|
}
|
140
|
140
|
|
141
|
|
- /**
|
142
|
|
- * 根据id查询对象
|
143
|
|
- * @param id 实体ID
|
144
|
|
- */
|
145
|
|
- @RequestMapping(value="/mp/taHouse/{id}",method= RequestMethod.GET)
|
146
|
|
- @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
|
147
|
|
- public ResponseBean taHouseGet(@ApiParam("对象ID") @PathVariable String id) throws Exception{
|
148
|
|
- return ResponseBean.success(iTaHouseService.getById(id));
|
149
|
|
- }
|
150
|
|
-
|
151
|
|
-
|
152
|
141
|
/**
|
153
|
142
|
* 查询当前房源
|
154
|
143
|
* @param id 实体ID
|