|
@@ -259,6 +259,7 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
.eq(AppCourses::getAddressSiteId, id)
|
|
|
.like(AppCourses::getCategoryId, categoryId)
|
|
|
.eq(AppCourses::getRackingStatus, 0)
|
|
|
+ .gt(AppCourses::getEndTime, new Date())
|
|
|
.eq(AppCourses::getDelFlag, 0)).forEach(appCourses -> {
|
|
|
List<String> list = Arrays.asList(appCourses.getCover().split(","));
|
|
|
PlaceInfoVO.CourseInfoVO courseInfoVO = new PlaceInfoVO.CourseInfoVO();
|
|
@@ -374,16 +375,17 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
@Override
|
|
|
public IPage<CourseResponseVo> findByCourseList(CourseRequestVo courseRequestVo) {
|
|
|
Page<CourseResponseVo> page = new Page<CourseResponseVo>(courseRequestVo.getPageNo(), courseRequestVo.getPageSize());
|
|
|
+ Date date = new Date();
|
|
|
IPage<CourseResponseVo> courseInfoVOIPage=null;
|
|
|
if (ObjectUtil.isNotEmpty(courseRequestVo.getOrderByType())){
|
|
|
if (ObjectUtil.isNotEmpty(courseRequestVo.getLongitude())
|
|
|
&&ObjectUtil.isNotEmpty(courseRequestVo.getLatitude())){
|
|
|
- courseInfoVOIPage= appCoursesMapper.findByLaLoList(page,courseRequestVo);
|
|
|
+ courseInfoVOIPage= appCoursesMapper.findByLaLoList(page,courseRequestVo,date);
|
|
|
}else {
|
|
|
- courseInfoVOIPage= appCoursesMapper.findByList(page,courseRequestVo);
|
|
|
+ courseInfoVOIPage= appCoursesMapper.findByList(page,courseRequestVo,date);
|
|
|
}
|
|
|
}else {
|
|
|
- courseInfoVOIPage= appCoursesMapper.findByCourseList(page,courseRequestVo);
|
|
|
+ courseInfoVOIPage= appCoursesMapper.findByCourseList(page,courseRequestVo,date);
|
|
|
}
|
|
|
courseInfoVOIPage.getRecords().forEach(courseResponseVo -> {
|
|
|
String string = courseResponseVo.getCover().split(",")[0];
|