refactor(order): 调整优惠排序逻辑

- 将券码优惠的排序顺序从 1 调整为 2,使其显示顺序低于限时立减- 将限时立减优惠的排序顺序从 2 调整为 1,使其显示在最前面
This commit is contained in:
2025-08-29 14:50:49 +08:00
parent 3fbfb7df54
commit 4dac46bb46
2 changed files with 3 additions and 3 deletions

View File

@@ -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);