修改课程查询接口
This commit is contained in:
parent
4793a5a21a
commit
06f9914f1a
@ -124,7 +124,7 @@ public class LessonController {
|
||||
return iLessonService.pagedQueryByLoginProject(queryVO, loginInfo);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询用户当前登录的项目下的有效课程")
|
||||
@ApiOperation(value = "查询用户当前登录的项目下的课程")
|
||||
@GetMapping(path = "/list/byLoginProject")
|
||||
public List<LessonVO> queryByLoginProject(LessonQueryVO queryVO,
|
||||
@RequestAttribute(AuthenticateInterceptor.LOGIN_INFO_KEY) LoginUserInfoVO loginInfo) {
|
||||
|
@ -564,7 +564,7 @@ public class LessonService implements ILessonService {
|
||||
|
||||
@Override
|
||||
public List<LessonVO> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user