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
3f9c8230
Commit
3f9c8230
authored
Jul 22, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
尝试修改分割bug
parent
8270c357
Changes
2
Show 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 @
3f9c8230
...
@@ -89,7 +89,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
...
@@ -89,7 +89,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
" bf.file_time AS fileTime ,"
+
" bf.file_time AS fileTime ,"
+
" bf.file_size AS fileSize ,"
+
" bf.file_size AS fileSize ,"
+
" if((SELECT count(0) from b_file bbf\n"
+
" if((SELECT count(0) from b_file bbf\n"
+
" left join b_lesson bl on bl.business_id = b
bf
.lesson_id\n"
+
" left join b_lesson bl on bl.business_id = b
c
.lesson_id\n"
+
" where bbf.video_url = bf.video_url\n"
+
" where bbf.video_url = bf.video_url\n"
+
" and bl.corp_id != '###')>1,1,0) isCutPdf "
+
" and bl.corp_id != '###')>1,1,0) isCutPdf "
+
" FROM "
+
" FROM "
+
...
@@ -101,7 +101,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
...
@@ -101,7 +101,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
" ORDER BY "
+
" ORDER BY "
+
" bc.sort asc</script>"
)
" bc.sort asc</script>"
)
@ResultMap
(
value
=
"SupperChildListResultMap"
)
@ResultMap
(
value
=
"SupperChildListResultMap"
)
List
<
QueryChapterListResDTO
>
queryBChaptersByPid
(
@Param
(
"pid"
)
String
pid
,
@Param
(
"lessonId"
)
String
lessonId
);
List
<
QueryChapterListResDTO
>
queryBChaptersByPid
(
@Param
(
"pid"
)
String
pid
);
/**
/**
* 根据章节id查找该章节学生分数列表
* 根据章节id查找该章节学生分数列表
...
...
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
3f9c8230
...
@@ -719,7 +719,7 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -719,7 +719,7 @@ public class BChapterServiceImpl implements BChapterService {
if
((
ReleaseStateEnum
.
RELEASED
.
getCode
().
equals
(
bLesson
.
getReleaseState
())
||
ReleaseStateEnum
.
CLOSED
.
getCode
().
equals
(
bLesson
.
getReleaseState
()))
&&
chapterCount
==
1
&&
bChapter
.
getChapterLevel
()
!=
1
)
{
if
((
ReleaseStateEnum
.
RELEASED
.
getCode
().
equals
(
bLesson
.
getReleaseState
())
||
ReleaseStateEnum
.
CLOSED
.
getCode
().
equals
(
bLesson
.
getReleaseState
()))
&&
chapterCount
==
1
&&
bChapter
.
getChapterLevel
()
!=
1
)
{
throw
new
ServiceException
(
ResultServiceEnums
.
CHAPTER_ONLY_ONE
);
throw
new
ServiceException
(
ResultServiceEnums
.
CHAPTER_ONLY_ONE
);
}
}
List
<
QueryChapterListResDTO
>
childList
=
bChapterRepository
.
queryBChaptersByPid
(
id
,
lessonId
);
List
<
QueryChapterListResDTO
>
childList
=
bChapterRepository
.
queryBChaptersByPid
(
id
);
boolean
hasChild
=
childList
!=
null
&&
childList
.
size
()
>
0
;
boolean
hasChild
=
childList
!=
null
&&
childList
.
size
()
>
0
;
boolean
isChapter
=
bChapter
.
getChapterLevel
()
==
ChapterLevelEnum
.
CHAPTER
.
getCode
();
boolean
isChapter
=
bChapter
.
getChapterLevel
()
==
ChapterLevelEnum
.
CHAPTER
.
getCode
();
if
(
isChapter
&&
hasChild
)
{
if
(
isChapter
&&
hasChild
)
{
...
...
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