|
@@ -3,12 +3,17 @@ package org.jeecg.modules.app.service.impl;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.modules.app.service.IDetailService;
|
|
import org.jeecg.modules.app.service.IDetailService;
|
|
import org.jeecg.modules.app.vo.CourseInfoVO;
|
|
import org.jeecg.modules.app.vo.CourseInfoVO;
|
|
import org.jeecg.modules.app.vo.PlaceInfoVO;
|
|
import org.jeecg.modules.app.vo.PlaceInfoVO;
|
|
|
|
+import org.jeecg.modules.app.vo.stadium.ConcertsVO;
|
|
|
|
+import org.jeecg.modules.app.vo.stadium.StadiumConcertsVO;
|
|
import org.jeecg.modules.system.app.entity.*;
|
|
import org.jeecg.modules.system.app.entity.*;
|
|
import org.jeecg.modules.system.app.mapper.*;
|
|
import org.jeecg.modules.system.app.mapper.*;
|
|
|
|
+import org.jeecg.modules.system.app.utils.TimeRangeFinder;
|
|
|
|
+import org.jeecg.modules.system.app.vo.time.NextSevenDayVo;
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
import org.jeecg.modules.system.mapper.SysUserMapper;
|
|
import org.jeecg.modules.system.mapper.SysUserMapper;
|
|
import org.jeecg.modules.system.util.PositionUtil;
|
|
import org.jeecg.modules.system.util.PositionUtil;
|
|
@@ -143,6 +148,25 @@ public class DetailServiceImpl implements IDetailService {
|
|
.setTimeSlot(collect);
|
|
.setTimeSlot(collect);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public Result<List<StadiumConcertsVO>> findConcerts(String siteId, String categoryId) {
|
|
|
|
+ List<NextSevenDayVo> nextSevenDays = TimeRangeFinder.getNextSevenDays();
|
|
|
|
+ List<StadiumConcertsVO> stadiumConcertsVOS = new ArrayList<>();
|
|
|
|
+ for (NextSevenDayVo nextSevenDay : nextSevenDays) {
|
|
|
|
+ StadiumConcertsVO stadiumConcertsVO = new StadiumConcertsVO();
|
|
|
|
+ BeanUtils.copyProperties(nextSevenDay,stadiumConcertsVO);
|
|
|
|
+ //
|
|
|
|
+ //查询预约总数
|
|
|
|
+// appSitePlaceMapper.findCount();
|
|
|
|
+// 查询过期和已预约数
|
|
|
|
+ //查询当天所有场地和场次
|
|
|
|
+ List<ConcertsVO> concertsVOList= appSitePlaceMapper.findByConcerts(stadiumConcertsVO.getWeekDay(),siteId,categoryId);
|
|
|
|
+ stadiumConcertsVO.setConcertsVOList(concertsVOList);
|
|
|
|
+ stadiumConcertsVOS.add(stadiumConcertsVO);
|
|
|
|
+ }
|
|
|
|
+ return Result.ok(stadiumConcertsVOS);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @return
|
|
* @return
|
|
* @Author SheepHy
|
|
* @Author SheepHy
|