Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
aaf0b6e5
Commit
aaf0b6e5
authored
Jul 22, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试29564bug修改
parent
fc2d6c00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+6
-1
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+9
-0
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
aaf0b6e5
...
...
@@ -284,7 +284,12 @@ public class BChapterServiceImpl implements BChapterService {
//未加入我学习中或外部分享
map
.
put
(
"currentChapter"
,
""
);
}
//判断当前企业是否可以查看课程
if
(
StringUtils
.
isNotEmpty
(
curUser
.
getCorpId
()))
{
if
(
bLessonRepository
.
queryViewRangeByCorpId
(
lessonId
,
curUser
.
getCorpId
())
<
1
)
{
map
.
put
(
"code"
,
132
);
}
}
return
map
;
}
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
aaf0b6e5
...
...
@@ -1401,5 +1401,14 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BLesson
>
getLessons
(
@Param
(
"corpId"
)
String
corpId
);
/**
* 根据课程id和企业id查询课程可见范围
* @param lessonId
* @param corpId
* @return
*/
@Select
(
"select count(0) from b_lesson_corp where lesson_id = #{lessonId} and corp_id = #{corpId}"
)
int
queryViewRangeByCorpId
(
@Param
(
"lessonId"
)
String
lessonId
,
@Param
(
"corpId"
)
String
corpId
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment