| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入place") |
| | | @ApiOperation(value = "分页LIST", notes = "传入place") |
| | | public R<IPage<PlaceVO>> list(PlaceEntity place, Query query) { |
| | | IPage<PlaceEntity> pages = placeService.page(Condition.getPage(query), Condition.getQueryWrapper(place)); |
| | | return R.data(PlaceWrapper.build().pageVO(pages)); |
| | |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入place") |
| | | @ApiOperation(value = "分页page", notes = "传入place") |
| | | public R<IPage<PlaceVO>> page(PlaceVO place, Query query) { |
| | | IPage<PlaceVO> pages = placeService.selectPlacePage(Condition.getPage(query), place); |
| | | return R.data(pages); |
| | |
| | | */ |
| | | @GetMapping("/ninePage") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入place") |
| | | @ApiOperation(value = "九小场所档案", notes = "传入place") |
| | | public R<IPage<PlaceVO>> ninePage(PlaceVO place, Query query) { |
| | | IPage<PlaceVO> pages = placeService.selectNinePlacePage(Condition.getPage(query), place); |
| | | return R.data(pages); |
| | |
| | | */ |
| | | @GetMapping("/mallPage") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入place") |
| | | @ApiOperation(value = "企业商超列表查询", notes = "传入place") |
| | | public R<IPage<PlaceVO>> mallPage(PlaceVO place, Query query) { |
| | | IPage<PlaceVO> pages = placeService.selectMallPage(Condition.getPage(query), place); |
| | | return R.data(pages); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 自定义新增/修改 |
| | | * 自定义新增 |
| | | * @param placeVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @ApiOperation(value = "自定义新增", notes = "传入place") |
| | | public R add(@RequestBody PlaceVO placeVO){ |
| | | return R.status(placeService.addOrUpdate(placeVO)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/addOrUpdate") |
| | | @ApiOperation(value = "自定义新增/修改", notes = "传入place") |
| | | public R addOrUpdate(@RequestBody PlaceVO placeVO){ |
| | | return R.status(placeService.addOrUpdate(placeVO)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/updatePlace") |
| | | @ApiOperation(value = "自定义修改", notes = "传入place") |
| | | public R updatePlace(@RequestBody PlaceVO placeVO){ |
| | | return R.status(placeService.updatePlace(placeVO)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/getDetail") |
| | | @ApiOperation(value = "场所表 自定义详情查询", notes = "传入ids") |
| | | public R<PlaceVO> getDetail(PlaceVO place) { |
| | | return R.data(placeService.getDetail(place)); |
| | | } |