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
a525e0ac
Commit
a525e0ac
authored
Nov 06, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
8c48bc94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
BChapterRepository.java
...org/rcisoft/business/bchapter/dao/BChapterRepository.java
+2
-2
ChapterDTO.java
...in/java/org/rcisoft/business/bchapter/dto/ChapterDTO.java
+1
-1
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 @
a525e0ac
...
@@ -404,7 +404,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
...
@@ -404,7 +404,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
@Select
(
"select lesson_id from b_chapter where business_id = #{businessId}"
)
@Select
(
"select lesson_id from b_chapter where business_id = #{businessId}"
)
String
getLessonIdBychaperId
(
@Param
(
"businessId"
)
String
businessId
);
String
getLessonIdBychaperId
(
@Param
(
"businessId"
)
String
businessId
);
@
Upda
te
(
"delete from b_r_student_chapter where chapter_id = #{chapterId} and student_id = #{uid} "
)
@
Dele
te
(
"delete from b_r_student_chapter where chapter_id = #{chapterId} and student_id = #{uid} "
)
int
deleteStudentChapter
(
@Param
(
"chapterId"
)
String
chapterId
,
@Param
(
"uid"
)
String
uid
);
int
delete
B
StudentChapter
(
@Param
(
"chapterId"
)
String
chapterId
,
@Param
(
"uid"
)
String
uid
);
}
}
src/main/java/org/rcisoft/business/bchapter/dto/ChapterDTO.java
View file @
a525e0ac
...
@@ -8,7 +8,7 @@ import lombok.Data;
...
@@ -8,7 +8,7 @@ import lombok.Data;
@Data
@Data
public
class
ChapterDTO
{
public
class
ChapterDTO
{
@ApiModelProperty
(
value
=
"
课程
id 修改章节时传入"
)
@ApiModelProperty
(
value
=
"
章节
id 修改章节时传入"
)
private
String
businessId
;
private
String
businessId
;
@ApiModelProperty
(
value
=
"课程ID"
)
@ApiModelProperty
(
value
=
"课程ID"
)
...
...
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
a525e0ac
...
@@ -364,7 +364,7 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -364,7 +364,7 @@ public class BChapterServiceImpl implements BChapterService {
//更新到b_lesson 表
//更新到b_lesson 表
bChapterRepository
.
updateCourseTimeForLesson
(
time
,
lessonId
);
bChapterRepository
.
updateCourseTimeForLesson
(
time
,
lessonId
);
//删除student_chapter表中数据
//删除student_chapter表中数据
bChapterRepository
.
deleteStudentChapter
(
id
,
userId
);
bChapterRepository
.
delete
B
StudentChapter
(
id
,
userId
);
}
}
return
new
PersistModel
(
line
);
return
new
PersistModel
(
line
);
...
...
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