| | |
| | | ComActNeighborCircleFabulousDO oldCircleFabulousDO = comActNeighborCircleFabulousDAO.selectOne( |
| | | new QueryWrapper<ComActNeighborCircleFabulousDO>().lambda().eq(ComActNeighborCircleFabulousDO::getType,ComActNeighborFabulousAppDTO.type.llq) |
| | | .eq(ComActNeighborCircleFabulousDO::getParentId,fabulousAppDTO.getServiceId()) |
| | | .eq(ComActNeighborCircleFabulousDO::getIsEffective,ComActNeighborCircleFabulousDO.isEffective.yes)); |
| | | .eq(ComActNeighborCircleFabulousDO::getIsEffective,ComActNeighborCircleFabulousDO.isEffective.yes) |
| | | .eq(ComActNeighborCircleFabulousDO::getUserId,fabulousAppDTO.getUserId())); |
| | | if(oldCircleFabulousDO != null){ |
| | | return R.fail("您已点赞"); |
| | | } |
| | |
| | | AdministratorsUserVO user = this.baseMapper.selectUserByUserId(commentDO.getUserId()); |
| | | ComActNeighborCommentByAdminVO vo = new ComActNeighborCommentByAdminVO(); |
| | | BeanUtils.copyProperties(commentDO,vo); |
| | | vo.setUserName(user.getName()); |
| | | String name = user.getName()==null?user.getNickName():user.getName(); |
| | | vo.setUserName(name); |
| | | return R.ok(vo); |
| | | } |
| | | |