| | |
| | | */ |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody ComActAcidRecordVO comActAcidRecordVO) { |
| | | ComActAcidRecord comActAcidRecord=new ComActAcidRecord(); |
| | | BeanUtils.copyProperties(comActAcidRecordVO,comActAcidRecord); |
| | | if(StringUtils.isNotEmpty(comActAcidRecord.getLocalCity())){ |
| | | this.comActAcidRecordService.updateById(comActAcidRecord); |
| | | } |
| | | return R.ok(); |
| | | return this.comActAcidRecordService.updateLocalCity(comActAcidRecordVO); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("del") |
| | | public R delete(@RequestParam("id") Long id) { |
| | | return R.ok(this.comActAcidRecordService.removeById(id)); |
| | | return this.comActAcidRecordService.delete(id); |
| | | } |
| | | |
| | | /** |