| | |
| | | return R.fail("id有误!"); |
| | | } |
| | | neighborCircleDO.setStatus(editVO.getStatus()); |
| | | neighborCircleDO.setRefuseReason(editVO.getRefuseReason()); |
| | | if(editVO.getRefuseReason()!=null){ |
| | | neighborCircleDO.setRefuseReason(editVO.getRefuseReason()); |
| | | } |
| | | this.baseMapper.updateById(neighborCircleDO); |
| | | return R.ok(); |
| | | } |
| | |
| | | if(commentDO==null){ |
| | | return R.fail("id有误!"); |
| | | } |
| | | AdministratorsUserVO user = this.baseMapper.selectUserByUserId(commentDO.getUserId()); |
| | | ComActNeighborCommentByAdminVO vo = new ComActNeighborCommentByAdminVO(); |
| | | BeanUtils.copyProperties(commentDO,vo); |
| | | vo.setUserName(user.getName()); |
| | | return R.ok(vo); |
| | | } |
| | | |
| | |
| | | public R detailNeighborCommentAllReply(DetailNeighborCommentReplyByAdminDTO dto) { |
| | | Page<ComActNeighborCircleCommentReplyDO> page = new Page<>(dto.getPageNum(),dto.getPageSize()); |
| | | Page<ComActNeighborCommentReplyByAdminVO> replyPage = neighborCircleCommentReplyDAO.selectListByComment(page, dto); |
| | | replyPage.getRecords().forEach(reply->{ |
| | | |
| | | }); |
| | | return R.ok(replyPage); |
| | | } |
| | | |
| | |
| | | if(replyDO==null){ |
| | | return R.fail("id有误!"); |
| | | } |
| | | AdministratorsUserVO user = this.baseMapper.selectUserByUserId(replyDO.getUserId()); |
| | | ComActNeighborCommentReplyByAdminVO vo = new ComActNeighborCommentReplyByAdminVO(); |
| | | BeanUtils.copyProperties(replyDO,vo); |
| | | vo.setUserName(user.getName()); |
| | | vo.setUserPhone(user.getPhone()); |
| | | return R.ok(vo); |
| | | } |
| | | |