Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 40ad9df5
authored
Aug 05, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行业领域
1 parent
b88cae93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
src/main/java/com/subsidy/service/impl/CourseDictServiceImpl.java
src/main/java/com/subsidy/vo/vod/GetContendVodsVO.java
src/main/resources/mapper/VodDictMapper.xml
src/main/java/com/subsidy/service/impl/CourseDictServiceImpl.java
View file @
40ad9df
...
@@ -387,6 +387,20 @@ public class CourseDictServiceImpl extends ServiceImpl<CourseDictMapper, CourseD
...
@@ -387,6 +387,20 @@ public class CourseDictServiceImpl extends ServiceImpl<CourseDictMapper, CourseD
List
<
RankDictDO
>
rankDictDOS
=
rankDictMapper
.
queryCourseRanks
(
queryCoursesVO
.
getId
());
List
<
RankDictDO
>
rankDictDOS
=
rankDictMapper
.
queryCourseRanks
(
queryCoursesVO
.
getId
());
queryCoursesVO
.
setRankDictDOS
(
rankDictDOS
);
queryCoursesVO
.
setRankDictDOS
(
rankDictDOS
);
//经营范围
//经营范围
List
<
BusinessScopeDictDO
>
businessScopeDictDOS
=
businessScopeDictMapper
.
getBusinessScope
(
queryCoursesVO
.
getId
());
List
<
BusinessVO
>
businessVOS
=
new
ArrayList
<>();
for
(
BusinessScopeDictDO
bsd
:
businessScopeDictDOS
)
{
BusinessVO
businessVO
=
new
BusinessVO
();
BeanUtils
.
copyProperties
(
bsd
,
businessVO
);
if
(
bsd
.
getParentId
()
!=
null
)
{
BusinessScopeDictDO
businessScopeDictDO
=
businessScopeDictMapper
.
selectById
(
bsd
.
getParentId
());
businessVO
.
setParentName
(
businessScopeDictDO
.
getBusinessScopeName
());
}
businessVOS
.
add
(
businessVO
);
}
//课时
//课时
Integer
vodCnt
=
courseDictMapper
.
queryCourseCnt
(
queryCoursesVO
.
getId
());
Integer
vodCnt
=
courseDictMapper
.
queryCourseCnt
(
queryCoursesVO
.
getId
());
queryCoursesVO
.
setVodCounts
(
vodCnt
);
queryCoursesVO
.
setVodCounts
(
vodCnt
);
...
...
src/main/java/com/subsidy/vo/vod/GetContendVodsVO.java
View file @
40ad9df
...
@@ -8,4 +8,6 @@ public class GetContendVodsVO extends VodDictDO {
...
@@ -8,4 +8,6 @@ public class GetContendVodsVO extends VodDictDO {
private
String
content
;
private
String
content
;
private
String
vodAliasName
;
}
}
src/main/resources/mapper/VodDictMapper.xml
View file @
40ad9df
...
@@ -38,7 +38,8 @@
...
@@ -38,7 +38,8 @@
t.cover_page,
t.cover_page,
t2.content,
t2.content,
t.order_no,
t.order_no,
t.vod_code
t.vod_code,
t3.vod_alias_name
FROM
FROM
vod_dict t
vod_dict t
LEFT JOIN content_vod_mapping t3 ON t3.vod_id = t.id
LEFT JOIN content_vod_mapping t3 ON t3.vod_id = t.id
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment