| | |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页page", notes = "传入place") |
| | | public R<IPage<PlaceVO>> page(PlaceVO place, Query query) { |
| | | bladeLogger.info("blade-place_page", JsonUtil.toJson(place)); |
| | | bladeLogger.info("场所列表查询", JsonUtil.toJson(place)); |
| | | IPage<PlaceVO> pages = placeService.selectPlacePage(Condition.getPage(query), place); |
| | | return R.data(pages); |
| | | } |
| | |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "九小场所档案", notes = "传入place") |
| | | public R<IPage<PlaceVO>> ninePage(PlaceVO place, Query query) { |
| | | bladeLogger.info("blade-place_ninePage", JsonUtil.toJson(place)); |
| | | bladeLogger.info("九小场所档案列表查询", JsonUtil.toJson(place)); |
| | | IPage<PlaceVO> pages = placeService.selectNinePlacePage(Condition.getPage(query), place); |
| | | return R.data(pages); |
| | | } |
| | |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "企业商超列表查询", notes = "传入place") |
| | | public R<IPage<PlaceVO>> mallPage(PlaceVO place, Query query) { |
| | | bladeLogger.info("blade-place_mallPage", JsonUtil.toJson(place)); |
| | | bladeLogger.info("企业商超列表查询", JsonUtil.toJson(place)); |
| | | IPage<PlaceVO> pages = placeService.selectMallPage(Condition.getPage(query), place); |
| | | return R.data(pages); |
| | | } |
| | |
| | | @ApiLog("场所自定义新增") |
| | | @ApiOperation(value = "自定义新增", notes = "传入place") |
| | | public R add(@RequestBody PlaceVO placeVO){ |
| | | bladeLogger.info("场所自定义新增", JsonUtil.toJson(placeVO)); |
| | | bladeLogger.info("场所信息采集/修改", JsonUtil.toJson(placeVO)); |
| | | return R.status(placeService.addOrUpdate(placeVO)); |
| | | } |
| | | |
| | |
| | | @ApiLog("场所自定义新增/修改") |
| | | @ApiOperation(value = "自定义新增/修改", notes = "传入place") |
| | | public R addOrUpdate(@RequestBody PlaceVO placeVO){ |
| | | bladeLogger.info("场所自定义新增/修改", JsonUtil.toJson(placeVO)); |
| | | bladeLogger.info("场所信息采集/修改", JsonUtil.toJson(placeVO)); |
| | | return R.status(placeService.addOrUpdate(placeVO)); |
| | | } |
| | | |
| | |
| | | @ApiLog("场所表 自定义详情查询") |
| | | @ApiOperation(value = "场所表 自定义详情查询", notes = "传入ids") |
| | | public R<PlaceVO> getDetail(PlaceVO place) { |
| | | bladeLogger.info("场所表 自定义详情查询", JsonUtil.toJson(place)); |
| | | bladeLogger.info("场所表详情查询", JsonUtil.toJson(place)); |
| | | return R.data(placeService.getDetail(place)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/import-place") |
| | | public R importPlace(MultipartFile file, Integer isCovered) { |
| | | bladeLogger.info("场所信息批量导入", JsonUtil.toJson(isCovered)); |
| | | String data = placeService.importPlace(ExcelUtil.read(file, ImportPlaceExcel.class),isCovered==1); |
| | | return R.data(200,data,""); |
| | | } |
| | | |
| | | /** |
| | | * 导出场所信息 |
| | | */ |
| | | @GetMapping("export-place") |
| | | @ApiOperationSupport(order = 13) |
| | | @ApiLog("导出场所信息") |
| | | @ApiOperation(value = "导出场所信息", notes = "传入place") |
| | | public void exportPlace(PlaceVO place, HttpServletResponse response) { |
| | | List<ExportPlaceExcel> list = placeService.exportPlaceList(place); |
| | | ExcelUtil.export(response, "场所数据管理" + DateUtil.time(), "场所数据表", list, ExportPlaceExcel.class); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R placeDoorBindHandle() { |
| | | return R.data(placeService.placeDoorBindHandle()); |
| | | } |
| | | |
| | | |
| | | // 查询附近1公里的场所列表 |
| | | @GetMapping("/getNearbyPlaceList") |
| | | public R getNearbyPlaceList(@RequestParam("lat") String lat, @RequestParam("lng") String lng) { |
| | | return R.data(placeService.getNearbyPlaceList(lat, lng)); |
| | | } |
| | | |
| | | /** |
| | | * 更新场所的POI标签颜色 |
| | | * @param placeId |
| | | * @param color |
| | | * @return |
| | | */ |
| | | @GetMapping("/updatePoiLabelColor") |
| | | public R updatePoiLabelColor(@RequestParam("placeId") Long placeId, @RequestParam("color") String color) { |
| | | return R.data(placeService.updatePoiLabelColor(placeId, color)); |
| | | } |
| | | } |