| | |
| | | |
| | | @Override |
| | | public IPage<CircleVO> selectCirclePage(IPage<CircleVO> page, CircleVO circle) { |
| | | CommonParamSet commonParamSet = new CommonParamSet().invoke(CircleVO.class, circle); |
| | | // CommonParamSet commonParamSet = new CommonParamSet().invoke(CircleVO.class, circle); |
| | | List<CircleVO> circleVOS = baseMapper.selectCirclePage(page, circle); |
| | | for (CircleVO circleVO : circleVOS) { |
| | | // 获取circleVO中circleId的点赞数 |
| | |
| | | if (StringUtils.isNotBlank(communityCode)) { |
| | | circle.setCommunityCode(communityCode); |
| | | } |
| | | // 校验事件是否分享过 |
| | | if (circle.getCircleType() != null && circle.getEventId() != null) { |
| | | long count = count(Wrappers.<CircleEntity>lambdaQuery(). |
| | | eq(CircleEntity::getCircleType, circle.getCircleType()). |
| | | eq(CircleEntity::getEventId, circle.getEventId())); |
| | | if (count > 0) { |
| | | return "当前发布的内容已经分享过,请勿重复发布!"; |
| | | } |
| | | } |
| | | boolean flag = false; |
| | | // 先进行敏感词过滤 |
| | | Map<String, Object> map = worksService.interceptWords(circle.getCircleText()); |