| | |
| | | */ |
| | | @GetMapping("{id}") |
| | | public R selectOne(@PathVariable("id") Long id) { |
| | | return R.ok(this.comActRaffleRecordService.selectById(id)); |
| | | return this.comActRaffleRecordService.selectById(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody ComActRaffleRecordVO comActRaffleRecordVO) { |
| | | ComActRaffleRecord comActRaffleRecord1=comActRaffleRecordService.getById(comActRaffleRecordVO.getId()); |
| | | if(comActRaffleRecord1.getStatus()!=1){ |
| | | return R.fail("核销失败"); |
| | | } |
| | | ComActRaffleRecord comActRaffleRecord=new ComActRaffleRecord(); |
| | | BeanUtils.copyProperties(comActRaffleRecordVO,comActRaffleRecord); |
| | | return R.ok(this.comActRaffleRecordService.updateById(comActRaffleRecord)); |