Commit fc0021b4 by 朱亚洁

feat:[1004188]getti外刊阅读

parent 5bcfe203
......@@ -5257,12 +5257,6 @@ public class BookGroupBizImpl implements BookGroupBiz {
if ((AppAndProductTypeEnum.APP.value.equals(item.getServeType()) && ArrayUtils.contains(RightsSettingConstant.APPLET_APP_NOT_SUPPORT, item.getFromType()))
|| (AppAndProductTypeEnum.PRODUCT.value.equals(item.getServeType()) && ArrayUtils.contains(RightsSettingConstant.APPLET_PRODUCT_NOT_SUPPORT, item.getFromType())) || StringUtil.isEmpty(item.getFromType())) {
toRemoveList.add(item);
} else {
//RAYS应用在小程序里单独展示
List<String> typeCodes = appConsr.getRaysAppTypeCodes();
if (!ListUtils.isEmpty(typeCodes) && typeCodes.contains(item.getFromType())) {
toRemoveList.add(item);
}
}
}
if (!ListUtils.isEmpty(toRemoveList)) {
......@@ -6441,12 +6435,18 @@ public class BookGroupBizImpl implements BookGroupBiz {
continue;
}
if (AppAndProductTypeEnum.APP.value.equals(bookServeDTO.getServeType())) {
List<String> typeCodes = appConsr.getRaysAppTypeCodes();
if (!MapUtils.isEmpty(appDtoMap) && null != appDtoMap.get(bookServeDTO.getServeId())) {
AppDto appDto = appDtoMap.get(bookServeDTO.getServeId());
if (checkRayUrl(appDto.getTurnUrl()) && AppTypeEnum.ARTICLE.value.equals(appDto.getTypeCode())){
removeList.add(bookServeDTO);
continue;
}
//RAYS应用在小程序里单独展示,不展示在配套资料中
if (!ListUtils.isEmpty(typeCodes) && typeCodes.contains(appDto.getTypeCode())) {
removeList.add(bookServeDTO);
continue;
}
bookServeDTO.setServeName(appDto.getTitle());
bookServeDTO.setCoverImg(appDto.getSquareImg());
bookServeDTO.setFromType(appDto.getTypeCode());
......
......@@ -3493,12 +3493,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
|| AppAndProductTypeEnum.PRODUCT.value.equals(item.getServeType()) && ArrayUtils
.contains(RightsSettingConstant.APPLET_PRODUCT_NOT_SUPPORT, item.getServeTypeCode())) {
toRemoveList.add(item);
} else {
//RAYS应用在小程序里单独展示
List<String> typeCodes = appConsr.getRaysAppTypeCodes();
if (!ListUtils.isEmpty(typeCodes) && typeCodes.contains(item.getServeTypeCode())) {
toRemoveList.add(item);
}
}
}
if (!ListUtils.isEmpty(toRemoveList)) {
......@@ -4406,4 +4400,5 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
List<BookServeDTO> list = rightsNowItemDao.getServeItemsByServeTypes(rightsSettingDto.getId(), serveTypes,limit);
return list;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment