package com.agentdriving.driver.modular.system.model;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 优惠券
|
* @author pzb
|
* @Date 2023/2/28 11:57
|
*/
|
@Data
|
@TableName("t_coupon")
|
public class Coupon {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@TableField("id")
|
private Integer id;
|
/**
|
* 代理商id
|
*/
|
@TableField("agent_id")
|
private Integer agentId;
|
/**
|
* 分公司id
|
*/
|
@TableField("branch_office_id")
|
private Integer branchOfficeId;
|
/**
|
* 创建时间
|
*/
|
@TableField("create_time")
|
private Date createTime;
|
/**
|
* 优惠券名称
|
*/
|
@TableField("coupon_name")
|
private String couponName;
|
/**
|
* 优惠券类型 1活动券 2新人券
|
*/
|
@TableField("coupon_type")
|
private Integer couponType;
|
/**
|
* 优惠券码
|
*/
|
@TableField("coupon_code")
|
private String couponCode;
|
/**
|
* 服务类型 1通用券
|
*/
|
@TableField("coupon_service_type")
|
private Integer couponServiceType;
|
/**
|
* 条件金额
|
*/
|
@TableField("coupon_conditional_amount")
|
private Double couponConditionalAmount;
|
/**
|
* 优惠金额
|
*/
|
@TableField("coupon_preferential_amount")
|
private Double couponPreferentialAmount;
|
/**
|
* 有效期
|
*/
|
@TableField("coupon_validity")
|
private Integer couponValidity;
|
/**
|
* 赠送数量
|
*/
|
@TableField("coupon_send_quantity")
|
private Integer couponSendQuantity;
|
/**
|
* 是否冻结 1正常 2冻结
|
*/
|
@TableField("coupon_state")
|
private Integer couponState;
|
/**
|
* 优惠券数量
|
*/
|
@TableField("coupon_count")
|
private Integer couponCount;
|
/**
|
* 剩余数量
|
*/
|
@TableField("remaining_quantity")
|
private Integer remainingQuantity;
|
}
|