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
59943dab
Commit
59943dab
authored
Oct 23, 2019
by
王淑君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
67a16a3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
BBannerServiceImpl.java
...oft/business/bbanner/service/impl/BBannerServiceImpl.java
+1
-2
BChapterRepository.java
...org/rcisoft/business/bchapter/dao/BChapterRepository.java
+3
-1
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/bbanner/service/impl/BBannerServiceImpl.java
View file @
59943dab
...
...
@@ -55,8 +55,7 @@ public class BBannerServiceImpl implements BBannerService {
Pattern
pattern
=
Pattern
.
compile
(
regex
);
if
(!
pattern
.
matcher
(
model
.
getExternalUrl
()).
matches
())
{
// System.out.println("是正确的网址");
throw
new
ServiceException
(
"非法网址"
);
throw
new
ServiceException
(
"网址不合法"
);
}
}
//内部链接但类型或课程ID为空或长度为0 抛异常
...
...
src/main/java/org/rcisoft/business/bchapter/dao/BChapterRepository.java
View file @
59943dab
...
...
@@ -388,9 +388,11 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
" AND bp.chapter_id != '' "
+
" AND b.business_id = #{lessonId} "
+
" AND bp.person_id = #{userId} "
+
"and bp.corp_id = #{corpId} "
+
"</script>"
)
@ResultMap
(
value
=
"SupperChildListResultMap"
)
QueryChapterListResDTO
getWithCurrentChapterBylessonId
(
@Param
(
"lessonId"
)
String
lessonId
,
@Param
(
"userId"
)
String
userId
);
QueryChapterListResDTO
getWithCurrentChapterBylessonId
(
@Param
(
"lessonId"
)
String
lessonId
,
@Param
(
"userId"
)
String
userId
,
@Param
(
"corpId"
)
String
corpId
);
/**
* 根据business_id将第一章第一节的课程时长加到course_time
...
...
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
59943dab
...
...
@@ -135,7 +135,7 @@ public class BChapterServiceImpl implements BChapterService {
map
.
put
(
"chapterList"
,
queryChapterListResDTOS
);
map
.
put
(
"totalProgress"
,
i
==
0
?
"0%"
:
df
.
format
((
float
)
percent
/
i
)
+
"%"
);
map
.
put
(
"lessonInfo"
,
bLessonRepository
.
selectByPrimaryKey
(
lessonId
));
// 课程信息
QueryChapterListResDTO
queryChapterListResDTO
=
bChapterRepository
.
getWithCurrentChapterBylessonId
(
lessonId
,
curUser
.
getUserId
());
QueryChapterListResDTO
queryChapterListResDTO
=
bChapterRepository
.
getWithCurrentChapterBylessonId
(
lessonId
,
curUser
.
getUserId
()
,
curUser
.
getCorpId
()
);
if
(
null
!=
queryChapterListResDTO
&&
StringUtils
.
isNotBlank
(
queryChapterListResDTO
.
getPid
())){
BChapter
bChapter
=
bChapterRepository
.
selectByPrimaryKey
(
queryChapterListResDTO
.
getPid
());
if
(
null
!=
bChapter
)
{
...
...
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