diff --git a/src/main/java/club/joylink/rtss/controller/publish/LessonController.java b/src/main/java/club/joylink/rtss/controller/publish/LessonController.java index c67594a9f..6ea09c4fa 100644 --- a/src/main/java/club/joylink/rtss/controller/publish/LessonController.java +++ b/src/main/java/club/joylink/rtss/controller/publish/LessonController.java @@ -124,7 +124,7 @@ public class LessonController { return iLessonService.pagedQueryByLoginProject(queryVO, loginInfo); } - @ApiOperation(value = "查询用户当前登录的项目下的有效课程") + @ApiOperation(value = "查询用户当前登录的项目下的课程") @GetMapping(path = "/list/byLoginProject") public List queryByLoginProject(LessonQueryVO queryVO, @RequestAttribute(AuthenticateInterceptor.LOGIN_INFO_KEY) LoginUserInfoVO loginInfo) { diff --git a/src/main/java/club/joylink/rtss/services/LessonService.java b/src/main/java/club/joylink/rtss/services/LessonService.java index ca33e0d78..09345a99f 100644 --- a/src/main/java/club/joylink/rtss/services/LessonService.java +++ b/src/main/java/club/joylink/rtss/services/LessonService.java @@ -564,7 +564,7 @@ public class LessonService implements ILessonService { @Override public List queryByLoginProject(LessonQueryVO queryVO, LoginUserInfoVO loginInfo) { - return queryNonDefaultLessons(null, loginInfo.getProject(), BusinessConsts.STATUS_USE); + return queryNonDefaultLessons(null, loginInfo.getProject(), queryVO.getStatus()); } @Override @@ -585,7 +585,6 @@ public class LessonService implements ILessonService { LsLessonExample example = new LsLessonExample(); Criteria criteria = example.createCriteria() .andMapIdIn(mapIds) - .andStatusEqualTo(BusinessConsts.STATUS_USE) .andSysfaultEqualTo(false); if (creatorId != null) { criteria.andCreatorIdEqualTo(creatorId);