| | |
| | | @ApiOperation(value = "新增报道单位") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | //comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | comPbCheckUnit.setCreateBy(this.getUserId()); |
| | | comPbCheckUnit.setCreateAt(new Date()); |
| | | return this.comPbCheckUnitService.insert(comPbCheckUnit); |
| | |
| | | @ApiOperation(value = "编辑报道单位") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComPbCheckUnitDto comPbCheckUnit) { |
| | | comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | //comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | comPbCheckUnit.setUpdateBy(this.getUserId()); |
| | | comPbCheckUnit.setUpdateAt(new Date()); |
| | | return this.comPbCheckUnitService.update(comPbCheckUnit); |