Commit 40ad9df5 by 涂亚平

行业领域

1 parent b88cae93
......@@ -387,6 +387,20 @@ public class CourseDictServiceImpl extends ServiceImpl<CourseDictMapper, CourseD
List<RankDictDO> rankDictDOS = rankDictMapper.queryCourseRanks(queryCoursesVO.getId());
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());
queryCoursesVO.setVodCounts(vodCnt);
......
......@@ -8,4 +8,6 @@ public class GetContendVodsVO extends VodDictDO {
private String content;
private String vodAliasName;
}
......@@ -38,7 +38,8 @@
t.cover_page,
t2.content,
t.order_no,
t.vod_code
t.vod_code,
t3.vod_alias_name
FROM
vod_dict t
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!