| | |
| | | if(!isNull(type)){ |
| | | comActActivityDOS=comActActivityDOS.stream().filter(comActActivityDO -> comActActivityDO.getType().equals(type)).collect(Collectors.toList()); |
| | | } |
| | | if (!comActActivityDOS.isEmpty()) { |
| | | if (comActActivityDOS != null ) { |
| | | comActActivityDOS.forEach(comActActivityDO -> { |
| | | ComActActivityVO comActActivityVO = new ComActActivityVO(); |
| | | BeanUtils.copyProperties(comActActivityDO, comActActivityVO); |
| | |
| | | switch (comActActActRegistDO.getSignIdentity()) |
| | | { |
| | | case 1: |
| | | if(comActActivityDO.getParticipantRewardWay()==1) |
| | | { |
| | | rewardIntegral=rewardIntegral*(comActActActRegistDO.getTimes()); |
| | | } |
| | | if(comActActivityDO.getParticipantRewardWay()==2) |
| | | { |
| | | int hours = com.panzhihua.common.utlis.DateUtils.getHour(comActActActRegistDO.getStartTime(), comActActActRegistDO.getEndTime()); |
| | |
| | | break; |
| | | |
| | | case 2: |
| | | if(comActActivityDO.getPbRewardWay()==1) |
| | | { |
| | | rewardIntegral=rewardIntegral*(comActActActRegistDO.getTimes()); |
| | | } |
| | | if(comActActivityDO.getPbRewardWay()==2) |
| | | { |
| | | int hours = com.panzhihua.common.utlis.DateUtils.getHour(comActActActRegistDO.getStartTime(), comActActActRegistDO.getEndTime()); |
| | |
| | | break; |
| | | |
| | | case 3: |
| | | if(comActActivityDO.getVolunteerRewardWay()==1) |
| | | { |
| | | rewardIntegral=rewardIntegral*(comActActActRegistDO.getTimes()); |
| | | } |
| | | if(comActActivityDO.getVolunteerRewardWay()==2) |
| | | { |
| | | int hours = com.panzhihua.common.utlis.DateUtils.getHour(comActActActRegistDO.getStartTime(), comActActActRegistDO.getEndTime()); |