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
5213e5bb
Commit
5213e5bb
authored
Oct 24, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
7b18103d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+3
-3
AddLessonDTO.java
...n/java/org/rcisoft/business/blesson/dto/AddLessonDTO.java
+3
-0
BLesson.java
...ain/java/org/rcisoft/business/blesson/entity/BLesson.java
+0
-2
BMaterialRepository.java
...g/rcisoft/business/bmaterial/dao/BMaterialRepository.java
+2
-2
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
5213e5bb
...
@@ -260,15 +260,15 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -260,15 +260,15 @@ public class BChapterServiceImpl implements BChapterService {
if
(
StringUtils
.
isNotEmpty
(
model
.
getIsTest
()))
{
if
(
StringUtils
.
isNotEmpty
(
model
.
getIsTest
()))
{
BMaterial
bMaterial
=
new
BMaterial
();
BMaterial
bMaterial
=
new
BMaterial
();
UserUtil
.
setCurrentPersistOperation
(
bMaterial
);
UserUtil
.
setCurrentPersistOperation
(
bMaterial
);
bMaterial
.
setLessonId
(
model
.
getLessonId
());
bMaterial
.
setLessonId
(
chapterDTO
.
getLessonId
());
bMaterial
.
setChapterId
(
model
.
getBusinessId
());
bMaterial
.
setChapterId
(
chapterDTO
.
getBusinessId
());
bMaterial
.
setFileName
(
dto
.
getFileName
());
bMaterial
.
setFileName
(
dto
.
getFileName
());
if
(
StringUtils
.
isNotEmpty
(
dto
.
getFileTime
())
&&
dto
.
getFileTime
().
contains
(
"."
))
{
if
(
StringUtils
.
isNotEmpty
(
dto
.
getFileTime
())
&&
dto
.
getFileTime
().
contains
(
"."
))
{
bMaterial
.
setFileTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
bMaterial
.
setFileTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
}
}
bMaterial
.
setFileUrl
(
model
.
getVideoUrl
());
bMaterial
.
setFileUrl
(
dto
.
getVideoUrl
());
bMaterial
.
setType
(
model
.
getIsTest
());
bMaterial
.
setType
(
model
.
getIsTest
());
bMaterial
.
setUploadType
(
"1"
);
bMaterial
.
setUploadType
(
"1"
);
...
...
src/main/java/org/rcisoft/business/blesson/dto/AddLessonDTO.java
View file @
5213e5bb
...
@@ -29,6 +29,9 @@ public class AddLessonDTO {
...
@@ -29,6 +29,9 @@ public class AddLessonDTO {
@ApiModelProperty
(
value
=
"课程分类"
,
required
=
true
)
@ApiModelProperty
(
value
=
"课程分类"
,
required
=
true
)
private
String
courseId
;
private
String
courseId
;
@ApiModelProperty
(
value
=
"讲师id"
)
private
String
lecturerId
;
@ApiModelProperty
(
value
=
"课程描述"
)
@ApiModelProperty
(
value
=
"课程描述"
)
private
String
courseDescription
;
private
String
courseDescription
;
...
...
src/main/java/org/rcisoft/business/blesson/entity/BLesson.java
View file @
5213e5bb
...
@@ -247,8 +247,6 @@ public class BLesson extends IdEntity<BLesson> {
...
@@ -247,8 +247,6 @@ public class BLesson extends IdEntity<BLesson> {
UserUtil
.
setCurrentPersistOperation
(
this
);
UserUtil
.
setCurrentPersistOperation
(
this
);
//设置状态为待发布
//设置状态为待发布
this
.
setReleaseState
(
"0"
);
this
.
setReleaseState
(
"0"
);
// //设置讲师为登录人
// this.setLecturerId(this.getCreateBy());
//设置初始报名人数为0
//设置初始报名人数为0
this
.
setPersonNumber
(
"0"
);
this
.
setPersonNumber
(
"0"
);
//设置初始评论人数为0
//设置初始评论人数为0
...
...
src/main/java/org/rcisoft/business/bmaterial/dao/BMaterialRepository.java
View file @
5213e5bb
...
@@ -33,10 +33,10 @@ public interface BMaterialRepository extends BaseMapper<BMaterial> {
...
@@ -33,10 +33,10 @@ public interface BMaterialRepository extends BaseMapper<BMaterial> {
@Insert
(
"<script>insert into b_material "
+
@Insert
(
"<script>insert into b_material "
+
" (business_id,chapter_id,file_name,file_url, "
+
" (business_id,chapter_id,file_name,file_url, "
+
" type,upload_type,file_size,flag,del_flag, "
+
" type,upload_type,file_size,flag,del_flag, "
+
" remarks,create_by,update_by,update_date,create_date,file_time) "
+
" remarks,create_by,update_by,update_date,create_date,file_time
,lesson_id
) "
+
" values(#{businessId},#{chapterId},#{fileName},#{fileUrl}, "
+
" values(#{businessId},#{chapterId},#{fileName},#{fileUrl}, "
+
" #{type},#{uploadType},#{fileSize},#{flag},#{delFlag}, "
+
" #{type},#{uploadType},#{fileSize},#{flag},#{delFlag}, "
+
" #{remarks},#{createBy},#{updateBy},#{updateDate},#{createDate},#{fileTime}) "
+
" #{remarks},#{createBy},#{updateBy},#{updateDate},#{createDate},#{fileTime}
,#{lessonId}
) "
+
"</script>"
)
"</script>"
)
int
insertMaterial
(
BMaterial
bMaterial
);
int
insertMaterial
(
BMaterial
bMaterial
);
...
...
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