[fix]修改用户订单的枚举

This commit is contained in:
wangqx 2025-09-11 15:57:26 +08:00
parent bfd6bc390d
commit cfa44d714e
5 changed files with 17 additions and 16 deletions

View File

@ -205,17 +205,8 @@ public class Constants
public static final String CART = "cart";
}
/**
* 订单状态 0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单
*/
public static class OrderStatus {
public static final Integer NOTPAID = 0;
public static final Integer SEND = 1;
public static final Integer GET = 2;
public static final Integer CONFIRM = 3;
public static final Integer CLOSED = 4;
public static final Integer UNVAILD = 5;
}
/**
* H5订单查询状态

View File

@ -54,5 +54,13 @@ public class AccountBillVO extends BaseAudit {
@Excel(name = "来源")
private Integer source;
private Long memberId;
private String userName;
private String avatar;
private String orderSn;
}

View File

@ -38,7 +38,7 @@ public class OrderBo extends BaseBO<Order> {
@Schema(description ="支付方式0->未支付1->支付宝2->微信 精确匹配")
private Integer payType;
@Schema(description ="订单状态0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单 精确匹配")
@Schema(description ="订单状态0->待付款1->待核销2->已完成3->已关闭4->退款中5->已退款 6->已取消 9->已分账10->无效订单 精确匹配")
private Integer status;
@Schema(description ="退款状态枚举值1无售后或售后关闭2售后处理中3退款中4 退款成功 精确匹配")

View File

@ -4,17 +4,19 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 订单状态0->支付1->支付中2->已支付3->已关闭4->退款9->已分账10->无效订单
* 订单状态0->付款1->待核销2->已完成3->已关闭4->退款5->已退款 6->已取消 9->已分账10->无效订单 精确匹配
*/
@Getter
@AllArgsConstructor
public enum OrderStatusEnum {
UNPAID(0, "待支付"),
PAYMENT(1, "支付中"),
VERIFY(1, "待核销"),
PAID(2, "已支付"),
CLOSED(3, "已关闭"),
REFUNDED(4, "已退款"),
REFUNDED(4, "退款中"),
REFUNDED_SUCCESS(5, "已退款"),
CANCELLED(6, "已取消"),
DIVIDED(9, "已分账"),
INVALID(10, "无效订单");

View File

@ -251,7 +251,7 @@ public class EasypayServiceImpl implements IEasypayService {
orderMapper.updateById(Order.builder()
.id(payOrder.getOrderId())
.payId(payOrder.getId())
.status(OrderStatusEnum.PAYMENT.getValue())
.status(OrderStatusEnum.VERIFY.getValue())
.build());
// 生成返回前端的预支付信息
return generatePrePayVO(paymentBO.getPayType(), jsApiRespBody);