小bug 修复
This commit is contained in:
@@ -98,6 +98,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
||||
public List<CourseEntity> getCourseListForSociology(int sociologyId) {
|
||||
MPJLambdaWrapper<CourseToSociologyEntity> wrapper = new MPJLambdaWrapper<>();
|
||||
wrapper.selectAll(CourseEntity.class);
|
||||
wrapper.selectAs(CourseToSociologyEntity::getId,"bindId");
|
||||
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToSociologyEntity::getCourseId);
|
||||
wrapper.eq(CourseToSociologyEntity::getSociologyId,sociologyId);
|
||||
List<CourseEntity> courseEntities = courseToSociologyDao.selectJoinList(CourseEntity.class, wrapper);
|
||||
|
||||
@@ -60,7 +60,7 @@ public class CourseSociologyServiceImpl extends ServiceImpl<CourseSociologyDao,
|
||||
}
|
||||
}
|
||||
this.updateById(courseSociologyEntity);
|
||||
return R.ok();
|
||||
return R.ok().put("sociology",courseSociologyEntity);
|
||||
}
|
||||
|
||||
private List<CourseSociologyEntity> sociologys(int id){
|
||||
|
||||
Reference in New Issue
Block a user