记得上下班打卡 | git大法好,push需谨慎

Commit 7a8ad304 authored by jiangxiulong's avatar jiangxiulong

noticeList type存在时候只展示一个演出

parent e5b33623
......@@ -145,6 +145,10 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
toDayList = checkAppStatus(toDayList);
threeDaysList = checkAppStatus(threeDaysList);
if (null != type && type > 0) {
toDayList = mergeRoadList(toDayList);
threeDaysList = mergeRoadList(threeDaysList);
}
HashMap<String, Object> newList = CollectionUtil.mapStringObject();
newList.put("toDayList", toDayList);
......@@ -152,6 +156,21 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
return newList;
}
private List<KylinPerformanceVo> mergeRoadList(List<KylinPerformanceVo> PerformanceList) {
List<String> roadIdList = Arrays.asList();
List<KylinPerformanceVo> newList = ObjectUtil.getKylinPerformanceVoArrayList();
for (KylinPerformanceVo info : PerformanceList) {
String roadShowId = info.getRoadShowId();
if (null != roadShowId && !roadShowId.isEmpty()) {
if (!roadIdList.contains(info.getRoadShowId())) {
newList.add(info);
roadIdList.add(roadShowId);
}
}
}
return newList;
}
public List<KylinPerformanceVo> recommendList() {
List<KylinPerformanceVo> performancesListRecommend = dataUtils.getPerformancesListIsRecommend();
performancesListRecommend = checkAppStatus(performancesListRecommend);
......
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