Authored by mali

鉴定视频排序展示

@@ -113,6 +113,7 @@ public class QiniuLiveRecordService { @@ -113,6 +113,7 @@ public class QiniuLiveRecordService {
113 buyerOrders.stream().forEach(item -> { 113 buyerOrders.stream().forEach(item -> {
114 OrderVideoResp orderVideoResp = new OrderVideoResp(); 114 OrderVideoResp orderVideoResp = new OrderVideoResp();
115 QiniuLiveRecord qiniuLiveRecord = recordMap.get(item.getOrderCode()); 115 QiniuLiveRecord qiniuLiveRecord = recordMap.get(item.getOrderCode());
  116 + orderVideoResp.setCreateTimeInt(qiniuLiveRecord.getEndTime());
116 orderVideoResp.setCreateTime(DateUtil.getDateFormatEx(qiniuLiveRecord.getEndTime(), DateUtil.MM_dd_yyyy_HH_mm_ssEx)); 117 orderVideoResp.setCreateTime(DateUtil.getDateFormatEx(qiniuLiveRecord.getEndTime(), DateUtil.MM_dd_yyyy_HH_mm_ssEx));
117 orderVideoResp.setDesc(configReader.getString("ufo.order.realDesc", "鉴定结果:真")); 118 orderVideoResp.setDesc(configReader.getString("ufo.order.realDesc", "鉴定结果:真"));
118 orderVideoResp.setVideoPictureUrl(configReader.getString("ufo.order.realVideoPic", "http://img11.static.yhbimg.com/goodsimg/2019/01/15/17/01e7093ff7effcdf76ed191e68e4a5c4ca.png")); 119 orderVideoResp.setVideoPictureUrl(configReader.getString("ufo.order.realVideoPic", "http://img11.static.yhbimg.com/goodsimg/2019/01/15/17/01e7093ff7effcdf76ed191e68e4a5c4ca.png"));
@@ -121,7 +122,9 @@ public class QiniuLiveRecordService { @@ -121,7 +122,9 @@ public class QiniuLiveRecordService {
121 resps.add(orderVideoResp); 122 resps.add(orderVideoResp);
122 }); 123 });
123 124
124 - return resps; 125 + List<OrderVideoResp> sortResp = resps.stream().sorted((s1, s2) -> s2.getCreateTimeInt().compareTo(s1.getCreateTimeInt())).collect(Collectors.toList());
  126 +
  127 + return sortResp;
125 } 128 }
126 129
127 // 查询宣传视频 130 // 查询宣传视频