|
@@ -15,6 +15,7 @@ import org.jeecg.modules.app.vo.PlaceInfoVO;
|
|
|
import org.jeecg.modules.app.vo.course.CourseRequestVo;
|
|
|
import org.jeecg.modules.app.vo.course.CourseResponseVo;
|
|
|
import org.jeecg.modules.app.vo.stadium.ConcertsVO;
|
|
|
+import org.jeecg.modules.app.vo.stadium.StadiumConcertsResponseVO;
|
|
|
import org.jeecg.modules.app.vo.stadium.StadiumConcertsVO;
|
|
|
import org.jeecg.modules.system.app.entity.*;
|
|
|
import org.jeecg.modules.system.app.mapper.*;
|
|
@@ -182,8 +183,12 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Result<List<StadiumConcertsVO>> findConcerts(String siteId, String categoryId) {
|
|
|
+ public Result<StadiumConcertsResponseVO> findConcerts(String siteId, String categoryId) {
|
|
|
List<NextSevenDayVo> nextSevenDays = TimeRangeFinder.getNextSevenDays();
|
|
|
+ StadiumConcertsResponseVO stadiumConcertsResponseVO = appSitePlaceMapper.findBySidAndCid(siteId,categoryId);
|
|
|
+ if (stadiumConcertsResponseVO==null){
|
|
|
+ stadiumConcertsResponseVO = new StadiumConcertsResponseVO();
|
|
|
+ }
|
|
|
List<StadiumConcertsVO> stadiumConcertsVOS = new ArrayList<>();
|
|
|
for (NextSevenDayVo nextSevenDay : nextSevenDays) {
|
|
|
StadiumConcertsVO stadiumConcertsVO = new StadiumConcertsVO();
|
|
@@ -197,7 +202,8 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
stadiumConcertsVO.setConcertsVOList(concertsVOList);
|
|
|
stadiumConcertsVOS.add(stadiumConcertsVO);
|
|
|
}
|
|
|
- return Result.ok(stadiumConcertsVOS);
|
|
|
+ stadiumConcertsResponseVO.setStadiumConcertsVOList(stadiumConcertsVOS);
|
|
|
+ return Result.ok(stadiumConcertsResponseVO);
|
|
|
}
|
|
|
|
|
|
@Override
|