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
3219a41f
Commit
3219a41f
authored
Jul 17, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug29460
parent
f18a2fd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BChapterRepository.java
...org/rcisoft/business/bchapter/dao/BChapterRepository.java
+2
-2
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/bchapter/dao/BChapterRepository.java
View file @
3219a41f
...
@@ -29,8 +29,8 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
...
@@ -29,8 +29,8 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
@Update
(
"update b_chapter bc "
+
@Update
(
"update b_chapter bc "
+
"left join b_file bf on bc.business_id = bf.chapter_id "
+
"left join b_file bf on bc.business_id = bf.chapter_id "
+
"set bc.del_flag = '1' where bf.video_url = ( "
+
"set bc.del_flag = '1' where bf.video_url = ( "
+
"SELECT video_url from b_file where chapter_id = #{businessId})"
)
"SELECT video_url from b_file where chapter_id = #{businessId}
and lesson_id = #{lessonId}
)"
)
int
removeByPrimaryKey
(
@Param
(
"businessId"
)
String
businessId
);
int
removeByPrimaryKey
(
@Param
(
"businessId"
)
String
businessId
,
@Param
(
"lessonId"
)
String
lessonId
);
@Update
(
"update b_chapter set del_flag = '1' where business_id = #{businessId}"
)
@Update
(
"update b_chapter set del_flag = '1' where business_id = #{businessId}"
)
int
removeChapter
(
@Param
(
"businessId"
)
String
businessId
);
int
removeChapter
(
@Param
(
"businessId"
)
String
businessId
);
...
...
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
3219a41f
...
@@ -731,7 +731,7 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -731,7 +731,7 @@ public class BChapterServiceImpl implements BChapterService {
}
}
//获取第一节课的id 与当前id对比
//获取第一节课的id 与当前id对比
String
firstId
=
bChapterRepository
.
getFirstChapter
(
lessonId
);
String
firstId
=
bChapterRepository
.
getFirstChapter
(
lessonId
);
int
line
=
bChapterRepository
.
removeByPrimaryKey
(
id
);
int
line
=
bChapterRepository
.
removeByPrimaryKey
(
id
,
lessonId
);
bChapterRepository
.
updateClassHourInLesson
(
lessonId
);
bChapterRepository
.
updateClassHourInLesson
(
lessonId
);
if
(
StringUtils
.
isNotEmpty
(
id
)
&&
id
.
equals
(
firstId
))
{
if
(
StringUtils
.
isNotEmpty
(
id
)
&&
id
.
equals
(
firstId
))
{
//当前节为第一节 获取下一节的课程时长
//当前节为第一节 获取下一节的课程时长
...
...
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