添加绑定排序

This commit is contained in:
wuchunlei
2024-05-14 15:54:15 +08:00
parent 72185fee1b
commit e32f475259
2 changed files with 3 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
MPJLambdaWrapper<CourseToSociologyEntity> wrapper = new MPJLambdaWrapper<>();
wrapper.selectAll(CourseEntity.class);
wrapper.selectAs(CourseToSociologyEntity::getId,"bindId");
wrapper.selectAs(CourseToSociologyEntity::getSort,"toSociologySort");
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToSociologyEntity::getCourseId);
wrapper.eq(CourseToSociologyEntity::getSociologyId,sociologyId);
wrapper.orderByAsc(CourseToSociologyEntity::getSort);