集合比较器排序
orderRefundDetailVos.add(orderRefundDetailVo); } //按照时间倒序 Collections.sort(orderRefundDetailVos, new Comparator<OrderRefundDetailVo>() { @Override public int compare(OrderRefundDetailVo o1, OrderRefundDetailVo o2) { if (o1.getCreateDateTime()==null || o2.getCreateDateTime()==null){ return 1; } return o2.getCreateDateTime().compareTo(o1.getCreateDateTime()); } }); return orderRefundDetailVos;
迎风少年