| | |
| | | circleAppVO.setHaveSign(2); |
| | | } |
| | | |
| | | if(circleAppVO.getType().equals(ComActNeighborCircleDO.type.admin)){ |
| | | if(circleAppVO.getType() != null && circleAppVO.getType().equals(ComActNeighborCircleDO.type.admin)){ |
| | | ComActDO actDO = comActDAO.selectById(circleAppVO.getCommunityId()); |
| | | if(actDO != null){ |
| | | circleAppVO.setName(actDO.getName()); |
| | |
| | | return R.fail("未找到邻里圈信息"); |
| | | } |
| | | |
| | | if(circleDetailAppVO.getType().equals(ComActNeighborCircleDO.type.admin)){ |
| | | if(circleDetailAppVO.getType() != null && circleDetailAppVO.getType().equals(ComActNeighborCircleDO.type.admin)){ |
| | | ComActDO actDO = comActDAO.selectById(circleDetailAppVO.getCommunityId()); |
| | | if(actDO != null){ |
| | | circleDetailAppVO.setName(actDO.getName()); |
| | |
| | | comActNeighborCircleDO.setReleaseContent(addVO.getReleaseContent()); |
| | | comActNeighborCircleDO.setReleaseImages(addVO.getReleaseImages()); |
| | | comActNeighborCircleDO.setType(2); |
| | | comActNeighborCircleDO.setStatus(1); |
| | | comActNeighborCircleDO.setStatus(2); |
| | | comActNeighborCircleDO.setCommentNum(0); |
| | | comActNeighborCircleDO.setFabulousNum(0); |
| | | comActNeighborCircleDO.setForwardNum(0); |
| | |
| | | } |
| | | commentDO.setStatus(dto.getStatus()); |
| | | neighborCircleCommentDAO.updateById(commentDO); |
| | | |
| | | //查询邻里圈更新邻里圈评论数量 |
| | | ComActNeighborCircleDO neighborCircleDO = this.baseMapper.selectById(commentDO.getCircleId()); |
| | | if(neighborCircleDO != null){ |
| | | if(dto.getStatus().equals(2)){ |
| | | neighborCircleDO.setCommentNum(neighborCircleDO.getCommentNum() - 1); |
| | | }else if(dto.getStatus().equals(1)){ |
| | | neighborCircleDO.setCommentNum(neighborCircleDO.getCommentNum() + 1); |
| | | } |
| | | this.baseMapper.updateById(neighborCircleDO); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |