| | |
| | | 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.ComActDynVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerActivityVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.dao.VolunteerActivityDao; |
| | |
| | | { |
| | | |
| | | @Override |
| | | public VolunteerActivity queryById(String Id) { |
| | | return baseMapper.queryById(Id); |
| | | public VolunteerActivity queryById(String Id,String userId) { |
| | | return baseMapper.queryById(Id,userId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | String name, |
| | | String acState, |
| | | String acType, |
| | | String userId, |
| | | Date actityBeginTime, |
| | | Date actityEndTime) |
| | | { |
| | | Page page = new Page<VolunteerActivity>(pageNum,pageSize); |
| | | return baseMapper.queryList(page, name, acState, acType, actityBeginTime, actityEndTime); |
| | | return baseMapper.queryList(page, name, acState, acType, userId, actityBeginTime, actityEndTime); |
| | | } |
| | | |
| | | @Override |
| | |
| | | { |
| | | state = "3"; |
| | | } |
| | | else if (newTiem>applyEndtime) |
| | | else if (newTiem>applyEndtime && newTiem <actityBegintime ) |
| | | { |
| | | //报名如果截止 报名人数为0 结束活动 |
| | | Integer num=0; |
| | |
| | | itemDate.setAcState(state); |
| | | |
| | | VolunteerActivityVO comActDynVO = new VolunteerActivityVO(); |
| | | comActDynVO.setId(itemDate.getId()); |
| | | BeanUtils.copyProperties(itemDate, comActDynVO); |
| | | baseMapper.updateById(comActDynVO); |
| | | } |