Commit cb4b694f by weijiguang

test

parent 8f7d4f66
......@@ -191,7 +191,10 @@ public class CouponUserServiceImpl implements ICouponUserService {
BigDecimal orderTotalOrigDiscount = orderDetails.stream().map(x -> x.getOrigDiscount().multiply(new BigDecimal(x.getNum()))).reduce(BigDecimal.ZERO, BigDecimal::add);
log.info("orderTotalAmount:{}, orderTotalOrigDiscount:{}", orderTotalAmount, orderTotalOrigDiscount);
if (!CollectionUtils.isEmpty(couponVos)) {
orderDetails.forEach(orderDetail -> orderDetail.setAmountShould(orderDetail.getOrigDiscount()));
orderDetails.forEach(orderDetail -> {
log.info("detail,AmountShould:{},OrigDiscount:{}", orderDetail.getAmountShould(), orderDetail.getOrigDiscount());
orderDetail.setAmountShould(orderDetail.getOrigDiscount());
});
}
couponVos.stream().filter(couponVo -> StringUtils.isEmpty(couponVo.getNotFitableDesc())).forEach(couponVo -> {
/** 可用饮品范围的判断 */
......
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