This commit is contained in:
wangjinlei
2024-05-21 16:58:17 +08:00
parent 8cfb645798
commit 58d6741d45
3 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ public class CourseToSociologyMarketEntity {
private Integer sociologyMarketId;
private Integer sort;
private Date createTime;
@TableLogic

View File

@@ -22,6 +22,7 @@ public class CourseToMedicineMarketServiceImpl extends ServiceImpl<CourseToMedic
wrapper.selectAll(CourseEntity.class);
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToMedicineMarketEntity::getCourseId);
wrapper.eq(CourseToMedicineMarketEntity::getMedicineMarketId,marketId);
wrapper.orderByAsc(CourseToMedicineMarketEntity::getSort);
List<CourseEntity> courseEntities = this.getBaseMapper().selectJoinList(CourseEntity.class, wrapper);
return courseEntities;
}

View File

@@ -24,6 +24,7 @@ public class CourseToSociologyMarketServiceImpl extends ServiceImpl<CourseToSoci
wrapper.selectAll(CourseEntity.class);
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToSociologyMarketEntity::getCourseId);
wrapper.eq(CourseToSociologyMarketEntity::getSociologyMarketId,marketId);
wrapper.orderByAsc(CourseToSociologyMarketEntity::getSort);
List<CourseEntity> courseEntities = this.getBaseMapper().selectJoinList(CourseEntity.class, wrapper);
return courseEntities;
}