|
|
|
@ -18,6 +18,8 @@ import org.jeecg.modules.demo.appletCategorize.entity.AppletCategorize; |
|
|
|
import org.jeecg.modules.demo.appletCategorize.service.IAppletCategorizeService; |
|
|
|
import org.jeecg.modules.demo.appletCourse.entity.AppletCourse; |
|
|
|
import org.jeecg.modules.demo.appletCourse.service.IAppletCourseService; |
|
|
|
import org.jeecg.modules.demo.appletCoursePage.entity.AppletCoursePage; |
|
|
|
import org.jeecg.modules.demo.appletCoursePage.service.IAppletCoursePageService; |
|
|
|
import org.jeecg.modules.demo.appletLabel.entity.AppletLabel; |
|
|
|
import org.jeecg.modules.demo.appletLabel.service.IAppletLabelService; |
|
|
|
import org.jeecg.modules.demo.appletVip.service.IAppletVipService; |
|
|
|
@ -45,6 +47,8 @@ public class AppletApiBooksServiceImpl implements AppletApiBooksService { |
|
|
|
private IAppletCategorizeService appletCategorizeService; |
|
|
|
@Autowired |
|
|
|
private IAppletVipService appletVipService; |
|
|
|
@Autowired |
|
|
|
private IAppletCoursePageService appletCoursePageService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询书籍列表 |
|
|
|
@ -236,4 +240,22 @@ public class AppletApiBooksServiceImpl implements AppletApiBooksService { |
|
|
|
return book; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<AppletCoursePage> getCoursesPage(String id){ |
|
|
|
return appletCoursePageService.lambdaQuery() |
|
|
|
.eq(AppletCoursePage::getCourseId, id) |
|
|
|
.eq(AppletCoursePage::getStatus, "Y") |
|
|
|
.orderByAsc(AppletCoursePage::getSort) |
|
|
|
.select(AppletCoursePage::getId, |
|
|
|
AppletCoursePage::getTitle, |
|
|
|
AppletCoursePage::getPay |
|
|
|
) |
|
|
|
.list(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public AppletCoursePage getCoursesPageDetail(String id){ |
|
|
|
return appletCoursePageService.getById(id); |
|
|
|
} |
|
|
|
|
|
|
|
} |