添加绑定排序
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user