| | |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.log.annotation.ApiLog; |
| | | import org.springblade.core.log.logger.BladeLogger; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.jackson.JsonUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | public class PlaceExtController{ |
| | | |
| | | private final IPlaceExtService placeExtService; |
| | | private final BladeLogger bladeLogger; |
| | | |
| | | /** |
| | | * 场所详情表 详情 |
| | |
| | | */ |
| | | @GetMapping("/getDetail") |
| | | @ApiOperation(value = "自定义详情", notes = "传入placeExt") |
| | | @ApiLog("场所详情表 自定义详情") |
| | | public R<PlaceExtVO> getDetail(PlaceExtVO placeExt) { |
| | | bladeLogger.info("场所详情表 自定义详情", JsonUtil.toJson(placeExt)); |
| | | return R.data(placeExtService.getDetail(placeExt)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiLog("场所详情表 自定义分页") |
| | | @ApiOperation(value = "分页", notes = "传入placeExt") |
| | | public R<IPage<PlaceExtVO>> page(PlaceExtVO placeExt, Query query) { |
| | | bladeLogger.info("场所详情表 自定义分页", JsonUtil.toJson(placeExt)); |
| | | IPage<PlaceExtVO> pages = placeExtService.selectPlaceExtPage(Condition.getPage(query), placeExt); |
| | | return R.data(pages); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/updatePlaceExt") |
| | | @ApiLog("场所详情表 自定义更新") |
| | | @ApiOperation(value = "自定义更新", notes = "传入placeExt") |
| | | public R updatePlaceExt(@RequestBody PlaceExtVO placeExt) { |
| | | bladeLogger.info("场所详情表 自定义更新", JsonUtil.toJson(placeExt)); |
| | | return R.status(placeExtService.updatePlaceExt(placeExt)); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/checkPlaceExt") |
| | | @ApiLog("场所详情表 审核") |
| | | @ApiOperation(value = "审核", notes = "传入placeExt") |
| | | public R checkPlaceExt(@RequestBody PlaceExtEntity placeExt) { |
| | | bladeLogger.info("场所详情表 审核", JsonUtil.toJson(placeExt)); |
| | | return R.status(placeExtService.checkPlaceExt(placeExt)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiLog("场所详情表 删除") |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | bladeLogger.info("场所详情表 删除", JsonUtil.toJson(ids)); |
| | | return R.status(placeExtService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |