| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.vos.community.MostBeautifulVolunteerVO; |
| | | import com.panzhihua.common.model.vos.community.ComActDynVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerActivityVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.dao.MostBeautifulVolunteerDao; |
| | | import com.panzhihua.service_community.dao.VolunteerActivityDao; |
| | | import com.panzhihua.service_community.entity.MostBeautifulVolunteer; |
| | | import com.panzhihua.service_community.entity.VolunteerActivity; |
| | | import com.panzhihua.service_community.service.MostBeautifulVolunteerService; |
| | | import com.panzhihua.service_community.service.VolunteerActivityService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | |
| | | else if (newTiem>applyEndtime) |
| | | { |
| | | //报名如果截止 报名人数为0 结束活动 |
| | | Integer num=Integer.valueOf(itemDate.getVolunteerNum()); |
| | | Integer num=0; |
| | | if(!StringUtils.isEmpty(itemDate.getVolunteerNum())) |
| | | { |
| | | num=Integer.valueOf(itemDate.getVolunteerNum()); |
| | | } |
| | | if(num<=0) |
| | | { |
| | | state = "6"; |
| | |
| | | if(!StringUtils.equals(state,itemDate.getAcState())) |
| | | { |
| | | itemDate.setAcState(state); |
| | | baseMapper.updateById(itemDate); |
| | | |
| | | VolunteerActivityVO comActDynVO = new VolunteerActivityVO(); |
| | | comActDynVO.setId(itemDate.getId()); |
| | | BeanUtils.copyProperties(itemDate, comActDynVO); |
| | | baseMapper.updateById(comActDynVO); |
| | | } |
| | | } |
| | | } |