Commit 40ad9df5 by 涂亚平

行业领域

1 parent b88cae93
...@@ -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);
......
...@@ -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;
} }
...@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!