diff --git a/src/main/java/com/subsidy/service/impl/CourseDictServiceImpl.java b/src/main/java/com/subsidy/service/impl/CourseDictServiceImpl.java index 5a36c16..8a1af31 100644 --- a/src/main/java/com/subsidy/service/impl/CourseDictServiceImpl.java +++ b/src/main/java/com/subsidy/service/impl/CourseDictServiceImpl.java @@ -387,6 +387,20 @@ public class CourseDictServiceImpl extends ServiceImpl rankDictDOS = rankDictMapper.queryCourseRanks(queryCoursesVO.getId()); queryCoursesVO.setRankDictDOS(rankDictDOS); + //经营范围 + //经营范围 + List businessScopeDictDOS = businessScopeDictMapper.getBusinessScope(queryCoursesVO.getId()); + + List 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); diff --git a/src/main/java/com/subsidy/vo/vod/GetContendVodsVO.java b/src/main/java/com/subsidy/vo/vod/GetContendVodsVO.java index e60f7b6..e2d0a09 100644 --- a/src/main/java/com/subsidy/vo/vod/GetContendVodsVO.java +++ b/src/main/java/com/subsidy/vo/vod/GetContendVodsVO.java @@ -8,4 +8,6 @@ public class GetContendVodsVO extends VodDictDO { private String content; + private String vodAliasName; + } diff --git a/src/main/resources/mapper/VodDictMapper.xml b/src/main/resources/mapper/VodDictMapper.xml index 5fc7631..6c1bc0c 100644 --- a/src/main/resources/mapper/VodDictMapper.xml +++ b/src/main/resources/mapper/VodDictMapper.xml @@ -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