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
e111edee
Commit
e111edee
authored
Apr 08, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
25fbbb53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+6
-4
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
e111edee
...
@@ -358,7 +358,7 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -358,7 +358,7 @@ public class BChapterServiceImpl implements BChapterService {
UserUtil
.
setCurrentPersistOperation
(
bFile
);
UserUtil
.
setCurrentPersistOperation
(
bFile
);
//新建节数据插入到chapter表
//新建节数据插入到chapter表
chapterDTO
.
setIsTest
(
dto
.
getType
());
chapterDTO
.
setIsTest
(
dto
.
getType
());
if
(
"3"
.
equals
(
model
.
getIsTest
())
&&
dto
.
getPdfNum
()!=
null
&&
!
""
.
equals
(
dto
.
getPdfNum
())
&&
Integer
.
parseInt
(
dto
.
getPdfNum
())
>
1
){
if
(
"3"
.
equals
(
dto
.
getType
())
&&
dto
.
getPdfNum
()!=
null
&&
!
""
.
equals
(
dto
.
getPdfNum
())
&&
Integer
.
parseInt
(
dto
.
getPdfNum
())
>
1
){
//pdf 且页数大于每页限制
//pdf 且页数大于每页限制
int
num
=
Integer
.
parseInt
(
dto
.
getPdfNum
());
int
num
=
Integer
.
parseInt
(
dto
.
getPdfNum
());
List
<
BChapter
>
bChapterList
=
new
ArrayList
<>();
List
<
BChapter
>
bChapterList
=
new
ArrayList
<>();
...
@@ -415,7 +415,7 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -415,7 +415,7 @@ public class BChapterServiceImpl implements BChapterService {
if
(
bFileOld
.
getVideoUrl
().
equals
(
dto
.
getVideoUrl
())){
if
(
bFileOld
.
getVideoUrl
().
equals
(
dto
.
getVideoUrl
())){
dto
.
setPdfNum
(
"0"
);
dto
.
setPdfNum
(
"0"
);
}
}
if
(
"3"
.
equals
(
model
.
getIsTest
())
&&
dto
.
getPdfNum
()!=
null
&&
!
""
.
equals
(
dto
.
getPdfNum
())
&&
Integer
.
parseInt
(
dto
.
getPdfNum
())
>
1
){
if
(
"3"
.
equals
(
dto
.
getType
())
&&
dto
.
getPdfNum
()!=
null
&&
!
""
.
equals
(
dto
.
getPdfNum
())
&&
Integer
.
parseInt
(
dto
.
getPdfNum
())
>
1
){
model
.
setChapterName
(
model
.
getChapterName
()+
"-1"
);
model
.
setChapterName
(
model
.
getChapterName
()+
"-1"
);
}
}
if
(
model
.
getChapterLevel
()
==
1
)
{
if
(
model
.
getChapterLevel
()
==
1
)
{
...
@@ -472,7 +472,7 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -472,7 +472,7 @@ public class BChapterServiceImpl implements BChapterService {
bFileRepository
.
updateUploadFile
(
bFile
);
bFileRepository
.
updateUploadFile
(
bFile
);
//修改资料为 pdf 且页数大于切割数量
//修改资料为 pdf 且页数大于切割数量
if
(
"3"
.
equals
(
model
.
getIsTest
())
&&
dto
.
getPdfNum
()!=
null
&&
!
""
.
equals
(
dto
.
getPdfNum
())
&&
Integer
.
parseInt
(
dto
.
getPdfNum
())
>
1
){
if
(
"3"
.
equals
(
dto
.
getType
())
&&
dto
.
getPdfNum
()!=
null
&&
!
""
.
equals
(
dto
.
getPdfNum
())
&&
Integer
.
parseInt
(
dto
.
getPdfNum
())
>
1
){
//pdf 且页数大于每页限制
//pdf 且页数大于每页限制
int
num
=
Integer
.
parseInt
(
dto
.
getPdfNum
());
int
num
=
Integer
.
parseInt
(
dto
.
getPdfNum
());
List
<
BChapter
>
bChapterList
=
new
ArrayList
<>();
List
<
BChapter
>
bChapterList
=
new
ArrayList
<>();
...
@@ -504,7 +504,9 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -504,7 +504,9 @@ public class BChapterServiceImpl implements BChapterService {
}
}
//上传文件数据插入到bfile表中
//上传文件数据插入到bfile表中
bFileRepository
.
insertUploadFileList
(
bFileList
);
bFileRepository
.
insertUploadFileList
(
bFileList
);
int
zx
=
bChapterRepository
.
updatePdfSort
(
sortList
,
num
-
1
);
if
(
sortList
.
size
()
>
0
){
int
zx
=
bChapterRepository
.
updatePdfSort
(
sortList
,
num
-
1
);
}
}
}
// 判断 新文件 更新 课程学习进度(总进度 此章节进度)
// 判断 新文件 更新 课程学习进度(总进度 此章节进度)
...
...
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