package com.yuchen.saas.parking.api.entity.coupon;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nest.springwrap.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * @Author 蔡文强
 * @Date 2023/5/25 15:56
 * @Description 优惠券记录表
 */
@Data
public class PmgBatCouponRecord extends BaseEntity {

    @ApiModelProperty(name = "couponType", value = "优惠券类型(1:优惠卡 2:优惠活动)")
    private Integer couponType;

    @ApiModelProperty(name = "couponId", value = "优惠卡ID或者优惠活动ID")
    private Long couponId;

    @ApiModelProperty(name = "couponNo", value = "优惠券编号")
    private String couponNo;

    @ApiModelProperty(name = "startDate", value = "优惠券有效期开始日期")
    private Date startDate;

    @ApiModelProperty(name = "endDate", value = "优惠券有效期结束日期")
    private Date endDate;

    @ApiModelProperty(name = "couponAmount", value = "优惠券金额(单位分)")
    private Integer couponAmount;

    @ApiModelProperty(name = "realCouponAmount", value = "实际优惠金额(单位分)")
    private Integer realCouponAmount;

    @ApiModelProperty(name = "grantPeopleId", value = "优惠券发放人员(平台级用户ID)")
    private Long grantPeopleId;

    @ApiModelProperty(name = "userDetailId", value = "领取用户平台级用户ID")
    private Long userDetailId;

    @ApiModelProperty(name = "useCouponUserType", value = "使用对象用户类型(1:用户 2:车牌)")
    private Integer useCouponUserType;

    @ApiModelProperty(name = "receiver", value = "领取对象(手机号或者车牌号)")
    private String receiver;

    @ApiModelProperty(name = "receiveTime", value = "领取时间")
    private Date receiveTime;

    @ApiModelProperty(name = "usePeople", value = "使用对象(手机号或者车牌号)")
    private String usePeople;

    @ApiModelProperty(name = "useTime", value = "使用时间")
    private Date useTime;

    @ApiModelProperty(name = "billId", value = "使用订单")
    private Long billId;

    @ApiModelProperty(name = "useStatus", value = "使用状态(1:未使用 2:已使用 3:已过期)")
    private Integer useStatus;

}
