Commit 07128b2014b979c7aab3da11593558f15dafe098

Authored by fengliang
1 parent 8be8c692

update:购物车时间排序

etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
... ... @@ -155,7 +155,7 @@ public class ShopCartImpl implements IShopCartService {
155 155 shopCartVo.setSystemTime(LocalDateTime.now());
156 156 });
157 157 //对购物车集合按修改时间倒序排序
158   - return shopCartVos.stream().sorted(Comparator.comparing(ShopCartVo::getModifiedTime, Comparator.reverseOrder())).collect(Collectors.toList());
  158 + return shopCartVos.stream().sorted(Comparator.comparing(ShopCartVo::getCreatedTime, Comparator.reverseOrder())).collect(Collectors.toList());
159 159 }
160 160  
161 161 /**
... ...