| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- package com.ylx.giftCard.domain;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.ylx.common.core.domain.BaseEntity;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import java.math.BigDecimal;
- /**
- * 购物卡订单表
- */
- @EqualsAndHashCode(callSuper = true)
- @Data
- public class GiftCardOrder extends BaseEntity {
- private static final long serialVersionUID = -5890473596508557032L;
- /**
- * 订单主键ID
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Long id;
- /**
- * 订单编号(如 GC202601041400001)
- */
- private String orderNo;
- /**
- * 关联的购物卡ID
- */
- private Long giftCardId;
- /**
- * 购物卡名称(冗余,防卡被删后信息丢失)
- */
- private String giftCardName;
- /**
- * 购物卡面值(冗余)
- */
- private BigDecimal giftCardAmount;
- /**
- * 购买数量
- */
- private Integer purchaseQuantity;
- /**
- * 下单时的提成比例(冗余,防卡后续修改影响历史订单)
- */
- private BigDecimal commissionRate;
- /**
- * 用户ID(如 uid_xxx)
- */
- private String userId;
- /**
- * 用户姓名/昵称
- */
- private String userName;
- /**
- * 用户手机号
- */
- private String userPhone;
- /**
- * 商户ID
- */
- private String merchantId;
- /**
- * 商户姓名
- */
- private String merchantNickName;
- /**
- * 商户名称
- */
- private String merchantName;
- /**
- * 商户收款账号
- */
- private String merchantAccount;
- /**
- * 用户实付金额(= gift_card_amount)
- */
- private BigDecimal payAmount;
- /**
- * 商户实际提成金额(= pay_amount * commission_rate / 100)
- */
- private BigDecimal commissionAmount;
- /**
- * 订单状态:0=待支付,1=已支付,2=已退款,3=已过期
- */
- private Integer status;
- }
|