| | |
| | | return R.status(placeService.save(place)); |
| | | } |
| | | |
| | | /** |
| | | * 自定义新增/修改 |
| | | * @param placeVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody PlaceVO placeVO){ |
| | | return R.status(placeService.addVO(placeVO)); |
| | | return R.status(placeService.addOrUpdate(placeVO)); |
| | | } |
| | | |
| | | /** |
| | |
| | | return R.status(placeService.updateById(place)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 自定义修改 |
| | | * @param placeVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/updatePlace") |
| | | public R updatePlace(@RequestBody PlaceVO placeVO){ |
| | | return R.status(placeService.updatePlace(placeVO)); |
| | | } |
| | | |
| | | /** |
| | | * 场所表 新增或修改 |
| | | */ |