From 06f9914f1aa5fbd5e4b07be4c13f948d4ee6d3a3 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Tue, 30 Mar 2021 15:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=BE=E7=A8=8B=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../club/joylink/rtss/controller/publish/LessonController.java | 2 +- src/main/java/club/joylink/rtss/services/LessonService.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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);