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
7ce6b368
Commit
7ce6b368
authored
Oct 23, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
2cbf362f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+4
-2
BFileRepository.java
.../java/org/rcisoft/business/bfile/dao/BFileRepository.java
+1
-1
BLabelController.java
.../rcisoft/business/blabel/controller/BLabelController.java
+2
-2
BLabel.java
src/main/java/org/rcisoft/business/blabel/entity/BLabel.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
7ce6b368
...
...
@@ -203,6 +203,7 @@ public class BChapterServiceImpl implements BChapterService {
if
(
model
.
getIsTest
()
==
null
||
model
.
getIsTest
().
equals
(
""
))
{
model
.
setIsTest
(
""
);
}
model
.
setIsTest
(
dto
.
getType
());
int
sort
=
bChapterRepository
.
selectMaxSort
(
model
.
getPid
(),
model
.
getLessonId
());
model
.
setSort
(
sort
);
...
...
@@ -214,7 +215,7 @@ public class BChapterServiceImpl implements BChapterService {
line
=
bChapterRepository
.
insertSelective
(
model
);
}
else
{
model
.
setClassHour
(
"1"
);
model
.
setCourseTime
(
dto
.
getFileTime
());
model
.
setCourseTime
(
dto
.
getFileTime
()
.
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
))
);
// model.setCorpId(corpId);
bFile
.
setChapterId
(
model
.
getBusinessId
());
bFile
.
setLessonId
(
model
.
getLessonId
());
...
...
@@ -234,10 +235,11 @@ public class BChapterServiceImpl implements BChapterService {
}
}
else
{
UserUtil
.
setCurrentMergeOperation
(
model
);
bFile
.
setChapterId
(
model
.
getBusinessId
());
UserUtil
.
setCurrentMergeOperation
(
bFile
);
model
.
setCourseTime
(
dto
.
getFileTime
());
model
.
setIsTest
(
dto
.
getType
());
model
.
setCourseTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
//先判断该课程的第一章的第一节是否是本节 更新blesson表中course_time字段
String
cid
=
bChapterRepository
.
getFirstChapter
(
model
.
getLessonId
());
if
(
cid
.
equals
(
model
.
getBusinessId
()))
{
...
...
src/main/java/org/rcisoft/business/bfile/dao/BFileRepository.java
View file @
7ce6b368
...
...
@@ -51,7 +51,7 @@ public interface BFileRepository extends BaseMapper<BFile> {
"VALUES (#{businessId}, #{lessonId}, #{chapterId}, #{fileName}, #{videoUrl}, #{fileUrl}, #{type}, #{flag}, #{delFlag}, #{remarks}, #{createBy}, #{updateBy}, #{updateDate}, #{createDate},#{fileSize})"
)
int
insertUploadFile
(
BFile
bFile
);
@Update
(
"update b_file set file_name = #{fileName} , video_url = #{videoUrl} , type = #{type} "
+
@Update
(
"update b_file set file_name = #{fileName} , video_url = #{videoUrl} , type = #{type}
,file_size = #{fileSize}
"
+
"where chapter_id =#{chapterId}"
)
int
updateUploadFile
(
BFile
bFile
);
...
...
src/main/java/org/rcisoft/business/blabel/controller/BLabelController.java
View file @
7ce6b368
...
...
@@ -61,7 +61,7 @@ public class BLabelController extends PaginationController<BLabel> {
return
Result
.
builder
(
data
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
bLabel
.
getBusinessId
()
);
bLabel
);
}
@ApiOperation
(
value
=
"504 添加新标签"
,
notes
=
"根据businessId插入新标签"
)
...
...
@@ -73,7 +73,7 @@ public class BLabelController extends PaginationController<BLabel> {
return
Result
.
builder
(
data
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
nul
l
);
bLabe
l
);
}
@ApiOperation
(
value
=
"505 根据条件查询"
,
notes
=
"根据条件查询标签"
)
...
...
src/main/java/org/rcisoft/business/blabel/entity/BLabel.java
View file @
7ce6b368
...
...
@@ -20,7 +20,7 @@ import javax.validation.constraints.NotNull;
public
class
BLabel
extends
IdEntity
<
BLabel
>
{
/*标签名称*/
@Length
(
min
=
1
,
max
=
64
,
message
=
"标签名称过长"
)
@Length
(
min
=
0
,
max
=
64
,
message
=
"标签名称过长"
)
private
String
lName
;
}
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