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
182bdbde
Commit
182bdbde
authored
Apr 07, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已发布课程删除最后一节(节被切割)报错捕获
parent
2a9fc677
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+5
-1
ResultServiceEnums.java
...main/java/org/rcisoft/core/result/ResultServiceEnums.java
+1
-0
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
182bdbde
...
...
@@ -706,7 +706,11 @@ public class BChapterServiceImpl implements BChapterService {
// 根据chapter_id 删除b_r_student_chapter
// brStudentChapterRepository.deleteBatchByChapterId(id);
// 更新学生 对应章节总进度
this
.
updateLessonProgress
(
lessonId
,
false
,
id
);
try
{
this
.
updateLessonProgress
(
lessonId
,
false
,
id
);
}
catch
(
Exception
e
){
throw
new
ServiceException
(
ResultServiceEnums
.
CHAPTER_ONLY_ONES
);
}
}
//删除student_chapter表中数据
...
...
src/main/java/org/rcisoft/core/result/ResultServiceEnums.java
View file @
182bdbde
...
...
@@ -261,6 +261,7 @@ public enum ResultServiceEnums {
NOT_DOWNLOAD_FILE
(
161
,
"无下载文件"
),
ZHIXIN_ERROR
(
162
,
"调用智信接口异常"
),
NO_LECTURE
(
163
,
"当前培训无讲师"
),
CHAPTER_ONLY_ONES
(
164
,
"当前课程仅有一节(节被切割),不能被删除"
),
;
private
Integer
code
;
...
...
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