| | |
| | | public ComActActivityVO inforActivity(Long id, Long userId) { |
| | | ComActActivityVO comActActivityVO=comActActivityDAO.inforActivity(id); |
| | | if (!ObjectUtils.isEmpty(comActActivityVO)) { |
| | | |
| | | LambdaQueryWrapper<ComActActSignDO> actSignQuery = new LambdaQueryWrapper<>(); |
| | | actSignQuery.eq(ComActActSignDO::getActivityId, id); |
| | | if(userId != null){ |
| | | LambdaQueryWrapper<ComActActSignDO> actSignQuery = new LambdaQueryWrapper<>(); |
| | | actSignQuery.eq(ComActActSignDO::getActivityId, id); |
| | | actSignQuery.eq(ComActActSignDO::getUserId, userId); |
| | | } |
| | | |
| | | ComActActSignDO comActActSignDO = comActActSignDAO.selectOne(actSignQuery); |
| | | if (!ObjectUtils.isEmpty(comActActSignDO)) { |
| | | comActActivityVO.setIsSign(1); |
| | | comActActivityVO.setIsVolunteer(comActActSignDO.getIsVolunteer()); |
| | | }else { |
| | | |
| | | ComActActSignDO comActActSignDO = comActActSignDAO.selectOne(actSignQuery); |
| | | if (!ObjectUtils.isEmpty(comActActSignDO)) { |
| | | comActActivityVO.setIsSign(1); |
| | | comActActivityVO.setIsVolunteer(comActActSignDO.getIsVolunteer()); |
| | | } |
| | | } |
| | | } |
| | | return comActActivityVO; |
| | |
| | | WxUtil.sendSubscribeHDJJKS(openid,accessToken,actActivity.getActivityName() |
| | | , com.panzhihua.common.utlis.DateUtils.format(actActivity.getBeginAt() |
| | | ,com.panzhihua.common.utlis.DateUtils.ymdhms_format),actActivity.getActivityAddr() |
| | | ,actSignList.size()+"人"); |
| | | ,actSignList.size()+""); |
| | | } |
| | | |
| | | }); |