添加绑定排序
This commit is contained in:
@@ -38,4 +38,6 @@ public class CourseEntity {
|
|||||||
private Integer bindId;
|
private Integer bindId;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private Date endTime;
|
private Date endTime;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer toSociologySort;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
|||||||
MPJLambdaWrapper<CourseToSociologyEntity> wrapper = new MPJLambdaWrapper<>();
|
MPJLambdaWrapper<CourseToSociologyEntity> wrapper = new MPJLambdaWrapper<>();
|
||||||
wrapper.selectAll(CourseEntity.class);
|
wrapper.selectAll(CourseEntity.class);
|
||||||
wrapper.selectAs(CourseToSociologyEntity::getId,"bindId");
|
wrapper.selectAs(CourseToSociologyEntity::getId,"bindId");
|
||||||
|
wrapper.selectAs(CourseToSociologyEntity::getSort,"toSociologySort");
|
||||||
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToSociologyEntity::getCourseId);
|
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToSociologyEntity::getCourseId);
|
||||||
wrapper.eq(CourseToSociologyEntity::getSociologyId,sociologyId);
|
wrapper.eq(CourseToSociologyEntity::getSociologyId,sociologyId);
|
||||||
wrapper.orderByAsc(CourseToSociologyEntity::getSort);
|
wrapper.orderByAsc(CourseToSociologyEntity::getSort);
|
||||||
|
|||||||
Reference in New Issue
Block a user