You've already forked FrameTour-BE
refactor(order): 调整优惠排序逻辑
- 将券码优惠的排序顺序从 1 调整为 2,使其显示顺序低于限时立减- 将限时立减优惠的排序顺序从 2 调整为 1,使其显示在最前面
This commit is contained in:
@@ -126,7 +126,7 @@ public class OrderServiceImpl implements IOrderService {
|
||||
voucherDiscount.setDiscountType(DiscountType.VOUCHER);
|
||||
voucherDiscount.setDiscountName(voucherInfo.getBatchName());
|
||||
voucherDiscount.setDiscountAmount(voucherInfo.getActualDiscountAmount());
|
||||
voucherDiscount.setSortOrder(1); // 券码显示顺序最高
|
||||
voucherDiscount.setSortOrder(2); // 券码显示顺序低于限时立减
|
||||
voucherDiscount.setVoucherCode(voucherInfo.getVoucherCode());
|
||||
voucherDiscount.setCreateTime(now);
|
||||
|
||||
|
Reference in New Issue
Block a user