|
@@ -78,7 +78,7 @@ public class TextbookController {
|
|
textbookMPJLambdaWrapper
|
|
textbookMPJLambdaWrapper
|
|
.select(Textbook::getId)
|
|
.select(Textbook::getId)
|
|
.selectAs(Textbook::getId,TextbookSubscriptionListVo::getTextbookId)
|
|
.selectAs(Textbook::getId,TextbookSubscriptionListVo::getTextbookId)
|
|
- .selectAs(BaseCourseSubject::getName, TextbookSubscriptionListVo::getCourseSubjectIdCn)
|
|
|
|
|
|
+ .selectAs(BaseCourseSubject::getName, TextbookSubscriptionListVo::getCourseName)
|
|
.selectSum(BaseClassMajorSet::getTotalStudent, TextbookSubscriptionListVo::getStudentSubscriptionNumber)
|
|
.selectSum(BaseClassMajorSet::getTotalStudent, TextbookSubscriptionListVo::getStudentSubscriptionNumber)
|
|
.select(Textbook.class, x -> VoToColumnUtil.fieldsToColumns(TextbookSubscriptionListVo.class).contains(x.getProperty()))
|
|
.select(Textbook.class, x -> VoToColumnUtil.fieldsToColumns(TextbookSubscriptionListVo.class).contains(x.getProperty()))
|
|
.leftJoin(BaseClassCourse.class, BaseClassCourse::getCourseId, Textbook::getCourseSubjectId)
|
|
.leftJoin(BaseClassCourse.class, BaseClassCourse::getCourseId, Textbook::getCourseSubjectId)
|
|
@@ -140,7 +140,7 @@ public class TextbookController {
|
|
textbookMPJLambdaWrapper
|
|
textbookMPJLambdaWrapper
|
|
.select(Textbook::getId)
|
|
.select(Textbook::getId)
|
|
.selectAs(Textbook::getId,TextbookSubscriptionListVo::getTextbookId)
|
|
.selectAs(Textbook::getId,TextbookSubscriptionListVo::getTextbookId)
|
|
- .selectAs(BaseCourseSubject::getName, TextbookSubscriptionListVo::getCourseSubjectIdCn)
|
|
|
|
|
|
+ .selectAs(BaseCourseSubject::getName, TextbookSubscriptionListVo::getCourseName)
|
|
.selectSum(BaseClassMajorSet::getTotalStudent, TextbookSubscriptionListVo::getStudentSubscriptionNumber)
|
|
.selectSum(BaseClassMajorSet::getTotalStudent, TextbookSubscriptionListVo::getStudentSubscriptionNumber)
|
|
.select(Textbook.class, x -> VoToColumnUtil.fieldsToColumns(TextbookSubscriptionListVo.class).contains(x.getProperty()))
|
|
.select(Textbook.class, x -> VoToColumnUtil.fieldsToColumns(TextbookSubscriptionListVo.class).contains(x.getProperty()))
|
|
.leftJoin(TextbookClassRelation.class, TextbookClassRelation::getTextbookId, Textbook::getId)
|
|
.leftJoin(TextbookClassRelation.class, TextbookClassRelation::getTextbookId, Textbook::getId)
|