/** * 查询单体信息 * * @param contentid * @param acttype * @return */ public Map<String, Object> getAudioInfo(String contentid, String acttype) { CacheEle<_CacheDictionary> cache = ((CacheEle<_CacheDictionary>) SystemCache.getCache(WtContentMngConstants.CACHE_DICT)); _CacheDictionary cd = cache.getContent(); Map<String, Object> audioData = new HashMap<String, Object>(); MediaAsset ma = mediaService.getMaInfoById(contentid); audioData.put("ContentId", ma.getId()); audioData.put("ContentName", ma.getMaTitle()); audioData.put("MediaType", acttype); audioData.put("ContentImg", ma.getMaImg()); audioData.put("ContentCTime", ma.getCTime()); audioData.put("ContentPubTime", ma.getMaPublishTime()); audioData.put("ContentDesc", ma.getDescn()); audioData.put("ContentTimes", ma.getCTime()); audioData.put("ContentSource", ma.getMaPublisher()); audioData.put("ContentURI", ma.getMaURL()); audioData.put("ContentPersons", null); List<DictRefResPo> listdicref = mediaService.getResDictRefByResId(audioData.get("ContentId") + ""); String catalogs = ""; for (DictRefResPo dictRefResPo : listdicref) { DictDetail dd = cd.getDictDetail(dictRefResPo.getDictMid(), dictRefResPo.getDictDid()); if (dd != null) catalogs += "," + dd.getNodeName(); } audioData.put( "ContentCatalogs", (StringUtils.isNullOrEmptyOrSpace(catalogs) || catalogs.toLowerCase().equals("null")) ? null : catalogs.substring(1)); return audioData; }