优惠券为空
This commit is contained in:
@@ -466,7 +466,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
Long key = entry.getKey();
|
||||
List<OrderDetail> value = entry.getValue();
|
||||
BigDecimal couponNum = BigDecimal.ZERO;
|
||||
if (prodCouponMap.containsKey(key)) {
|
||||
if (CollUtil.isNotEmpty(prodCouponMap) && prodCouponMap.containsKey(key)){
|
||||
couponNum = new BigDecimal(prodCouponMap.get(key));
|
||||
if (value.size() > 1) {
|
||||
value.sort(Comparator.comparing(OrderDetail::getPrice));
|
||||
|
||||
Reference in New Issue
Block a user