|
|
|
@ -95,24 +95,26 @@ public class CmsContentController { |
|
|
|
|
object.put("sort" , cmsCategory.getSort()); |
|
|
|
|
object.put("code" , cmsCategory.getCode()); |
|
|
|
|
List<CmsContent> cmsContent = cmsContentService.getListCmsContentByCategoryId(cmsCategory.getId() , companyId , platform); |
|
|
|
|
if (cmsContent != null) { |
|
|
|
|
object.put("jumpType" , cmsContent.get(0).getJumpType()); |
|
|
|
|
object.put("jumpUrl" , cmsContent.get(0).getJumpUrl()); |
|
|
|
|
object.put("childDate" , cmsContentConfig.getCmsContentData(cmsCategory.getName() , companyId)); |
|
|
|
|
} |
|
|
|
|
object.put("childDate" , cmsContentConfig.getCmsContentData(cmsCategory.getName(), companyId)); |
|
|
|
|
} else if(cmsCategory.getType() == 3) { |
|
|
|
|
object.put("type" , cmsCategory.getType()); |
|
|
|
|
object.put("name" , cmsCategory.getName()); |
|
|
|
|
object.put("sort" , cmsCategory.getSort()); |
|
|
|
|
object.put("code" , cmsCategory.getCode()); |
|
|
|
|
List<CmsContent> cmsContent = cmsContentService.getListCmsContentByCategoryId(cmsCategory.getId() , companyId , platform); |
|
|
|
|
if (cmsContent != null) { |
|
|
|
|
object.put("jumpType" , cmsContent.get(0).getJumpType()); |
|
|
|
|
object.put("jumpUrl" , cmsContent.get(0).getJumpUrl()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
map.put("companyId" , companyId); |
|
|
|
|
map.put("whereCheck" , false); |
|
|
|
|
map.put("userId" , userInfoModel.getHighUser().getId()); |
|
|
|
|
|
|
|
|
|
object.put("childDate" , bsMsgService.queryMsgByList(map)); |
|
|
|
|
} |
|
|
|
|
objectList.add(object); |
|
|
|
|