| | |
| | | comActDiscussDO.setId(id); |
| | | comActDiscussDO.setIsDel(ComActDiscussDO.isOk.yes); |
| | | if (comActDiscussDAO.updateById(comActDiscussDO) > 0) { |
| | | comActDiscussDAO.incrCommentAndJoinNumById(id, false,false); |
| | | return R.ok(); |
| | | } |
| | | return R.fail(); |
| | |
| | | //评论成功,评论总数+1 |
| | | //若首次参与评论,参与讨论人数+1 |
| | | if (currentUserCommentCount > 0) { |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, false); |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, false,true); |
| | | } else { |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, true); |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, true,true); |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | //回复成功,评论总数+1 |
| | | //若首次参与评论,参与讨论人数+1 |
| | | if (currentUserCommentCount > 0) { |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, false); |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, false,true); |
| | | } else { |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, true); |
| | | comActDiscussDAO.incrCommentAndJoinNumById(discussId, true,true); |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | return R.ok(iPage); |
| | | } |
| | | |
| | | @Override |
| | | public R deleteId(String id) { |
| | | return R.ok(comActDiscussDAO.deleteId(id)); |
| | | } |
| | | |
| | | /** |
| | | * 议事投票-分页查询 小程序 |
| | | * |