package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.entity.PlatformCoupon;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class CouponShareRequest {

    /**
     * id
     */

    @Id
    private Long id;
    /**
     * 优惠卷id
     */
    @Column(name = "coupon_id")
    @ApiModelProperty(name = "couponId", value = "优惠卷id")
    private Long couponId;
    /**
     * 优惠卷编码
     */
    @Column(name = "coupon_num")
    @ApiModelProperty(name = "couponNum", value = "优惠卷编码")
    private String couponNum;
    /**
     * 优惠卷名称
     */
    @Column(name = "coupon_name")
    @ApiModelProperty(name = "couponName", value = "优惠卷名称")
    private String couponName;
    /**
     * 分享人手机 openID
     */
    @Column(name = "share_phone")
    @ApiModelProperty(name = "sharePhone", value = "分享人手机")
    private String sharePhone;
    /**
     * 分享人手机 openID
     */
    @Column(name = "share_openid")
    @ApiModelProperty(name = "shareOpenid", value = "分享人Openid")
    private String shareOpenid;
    /**
     * 领取人手机
     */
    @Column(name = "get_phone")
    @ApiModelProperty(name = "getPhone", value = "领取人手机")
    private String getPhone;
    /**
     * 领取人手机
     */
    @Column(name = "get_openid")
    @ApiModelProperty(name = "getPhone", value = "领取人Openid")
    private String getOpenid;
    /**
     * 使用编码
     */
    @Column(name = "use_num")
    @ApiModelProperty(name = "useNum", value = "使用编码")
    private String useNum;
    /**
     * 领取时间
     */
    @Column(name = "get_date")
    @ApiModelProperty(name = "getDate", value = "领取时间")
    private Date getDate;
    /**
     * 有效期
     */
    @Column(name = "validity")
    @ApiModelProperty(name = "validity", value = "有效期")
    private Date validity;
    /**
     * 分享提成规则(0=固定提成，1=单据金额抽成)，默认为0
     */
    @Column(name = "Share_commission_rules")
    @ApiModelProperty(name = "shareCommissionRules", value = "分享提成规则(0=固定提成，1=单据金额抽成)，默认为0")
    private Integer shareCommissionRules;
    /**
     * 固定提成
     */
    @Column(name = "fixed_amoun")
    @ApiModelProperty(name = "fixedAmoun", value = "固定提成")
    private Double fixedAmoun;
    /**
     * 单据金额抽成（%）
     */
    @Column(name = "order_commission")
    @ApiModelProperty(name = "orderCommission", value = "单据金额抽成（%）")
    private Double orderCommission;
    /**
     * 0=代金卷，1=折扣卷，3=代扣卷
     */
    @Column(name = "coupon_type")
    @ApiModelProperty(name = "couponType", value = "0=代金卷，1=折扣卷，3=代扣卷")
    private Integer couponType;
    /**
     * 0=满减，1=没有限制
     */
    @Column(name = "service_conditions")
    @ApiModelProperty(name = "serviceConditions", value = "0=满减，1=没有限制")
    private Integer serviceConditions;
    /**
     * 满减金额（满多少可以减）
     */
    @Column(name = "full_reduction_money")
    @ApiModelProperty(name = "fullReductionMoney", value = "满减金额（满多少可以减）")
    private Double fullReductionMoney;
    /**
     * 减多少金额（折扣代扣共用）
     */
    @Column(name = "full_discount_money")
    @ApiModelProperty(name = "fullDiscountMoney", value = "减多少金额（折扣,代扣,代金共用）")
    private Double fullDiscountMoney;
    /**
     * 减多少金额（折扣代扣共用）
     */
    @Column(name = "full_kims_money")
    @ApiModelProperty(name = "fullKimsMoney", value = "减多少金额（代扣,代金共用）")
    private Double fullKimsMoney;
    /**
     * 适用门店对象0:所有门店/1:指定门店
     */
    @Column(name = "suitable_store")
    @ApiModelProperty(name = "suitableStore", value = "适用门店对象0:所有门店/1:指定门店")
    private Integer suitableStore;
    /**
     * 适用项目对象0:所有项目/1:指定项目
     */
    @Column(name = "suitable_project")
    @ApiModelProperty(name = "suitableProject", value = "适用项目对象0:所有项目/1:指定项目")
    private Integer suitableProject;
    /**
     * 0=未使用，1=已经使用
     */
    @Column(name = "is_use")
    @ApiModelProperty(name = "isUse", value = "0=未使用，1=已经使用")
    private Integer isUse;
    /**
     * 使用时间
     */
    @Column(name = "doc_date")
    @ApiModelProperty(name = "docDate", value = "使用时间")
    private Date docDate;
    /**
     * 使用的门店Id
     */
    @Column(name = "store_id")
    @ApiModelProperty(name = "storeId", value = "使用的门店Id")
    private Long storeId;
    /**
     * 使用的门店编码
     */
    @Column(name = "store_num")
    @ApiModelProperty(name = "storeNum", value = "使用的门店编码")
    private String storeNum;
    /**
     * 使用的门店名称
     */
    @Column(name = "store_name")
    @ApiModelProperty(name = "storeName", value = "使用的门店名称")
    private String storeName;
    /**
     * 使用的单据类型
     */
    @Column(name = "doc_type")
    @ApiModelProperty(name = "docType", value = "使用的单据类型")
    private Integer docType;
    /**
     * 使用的单据编码
     */
    @Column(name = "doc_num")
    @ApiModelProperty(name = "docNum", value = "使用的单据编码")
    private String docNum;
    /**
     * 单据的金额
     */
    @Column(name = "doc_money")
    @ApiModelProperty(name = "docMoney", value = "单据的金额")
    private Double docMoney;
    /**
     * 本优惠劵使用提成
     */
    @Column(name = "use_commission")
    @ApiModelProperty(name = "useCommission", value = "本优惠劵使用提成")
    private Double useCommission;
    /**
     * 业务员id
     */
    @Column(name = "doc_merchandiser_id")
    @ApiModelProperty(name = "docMerchandiserId", value = "业务员id")
    private Long docMerchandiserId;
    /**
     * 业务员编码
     */
    @Column(name = "doc_merchandiser_num")
    @ApiModelProperty(name = "docMerchandiserNum", value = "业务员编码")
    private String docMerchandiserNum;
    /**
     * 业务员名称
     */
    @Column(name = "doc_merchandiser_name")
    @ApiModelProperty(name = "docMerchandiserName", value = "业务员名称")
    private String docMerchandiserName;

    /**
     * 是否已提取（0：未提取，1：已提取）
     */
    @Column(name = "share_extract")
    @ApiModelProperty(name = "shareExtract", value = "是否已提取（0：未提取，1：已提取）")
    private Integer shareExtract;


    private Double personalFenRun;
    private Integer wechatUser;

    private PlatformCoupon platformCoupon;

}
