| | |
| | | } |
| | | |
| | | /** |
| | | * 通知公告表浏览数量加一 |
| | | * 通知公告表浏览数量加一(反诈的居民查看会得积分) |
| | | */ |
| | | @PostMapping("/addNumber") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "添加浏览数量", notes = "传入notice") |
| | | public R addNumber(@Valid @RequestBody Article notice) { |
| | | public R addNumber(@Valid @RequestBody ArticleVO notice) { |
| | | UpdateWrapper<Article> objectUpdateWrapper = new UpdateWrapper<>(); |
| | | objectUpdateWrapper.setSql("view_number = view_number + 1"); |
| | | objectUpdateWrapper.eq("id", notice.getId()); |
| | | return R.status(articleService.update(null, objectUpdateWrapper)); |
| | | return R.status(articleService.updateArticle(objectUpdateWrapper,notice.getId(),notice.getHouseCode())); |
| | | } |
| | | } |