| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | String kind, |
| | | String userId, |
| | | String userIds, |
| | | String communityId) |
| | | String isDisplay, |
| | | String communityId, |
| | | Date startTime, |
| | | Date endTime) |
| | | { |
| | | Page page = new Page<>(pageNum,pageSize); |
| | | return baseMapper.getList(page, search, classifyId,status,kind,userId,userIds,communityId); |
| | | return baseMapper.getList(page, search, classifyId,status,kind,userId,userIds,isDisplay,communityId,startTime,endTime); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<NeedProblemInventoryDTO> getMyJoinList(int pageNum, int pageSize,String search,String status, |
| | | String kind, |
| | | String userIds, |
| | | String userId) { |
| | | String isDisplay, |
| | | String userId, |
| | | Date startTime, |
| | | Date endTime) { |
| | | Page page = new Page<>(pageNum,pageSize); |
| | | return baseMapper.getMyJoinList(page, search, status,kind,userIds,userId); |
| | | return baseMapper.getMyJoinList(page, search, status,kind,userIds,isDisplay,userId,startTime,endTime); |
| | | } |
| | | |
| | | @Override |
| | |
| | | public R timedNewFightNeedProblemInventoryHandler() { |
| | | // 定时任务 |
| | | List<NeedProblemInventoryDTO> list = baseMapper.getTimeList(); |
| | | int num=0; |
| | | int num2=0; |
| | | |
| | | for (NeedProblemInventoryDTO item : list) { |
| | | //当前时间 |
| | |
| | | vo.setId(item.getId()); |
| | | vo.setStatus("2"); |
| | | baseMapper.editData(vo); |
| | | num++; |
| | | } |
| | | |
| | | break; |
| | |
| | | vo.setId(item.getId()); |
| | | vo.setStatus("3"); |
| | | baseMapper.editData(vo); |
| | | num2++; |
| | | } |
| | | break; |
| | | //已开始 |
| | |
| | | } |
| | | |
| | | } |
| | | return R.ok(); |
| | | return R.ok(num+" "+num2); |
| | | } |
| | | } |