package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (StoreTurnTreatment)实体类
 *
 * @author makejava
 * @since 2022-03-16 10:03:00
 */
@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class StoreTurnTreatmentRequesttow {
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * 疗程账户ID（疗程表的数据ID）
     */
    @Column(name = "course_account_id")
    private Long courseAccountId;
    /**
     * 会员ID
     */
    @Column(name = "member_id")
    private Long memberId;
    /**
     * 会员名称
     */
    @Column(name = "member_name")
    private String memberName;

    /**
     * 会员手机号码
     */
    private String mobilePhone;
    /**
     * 会员卡
     */
    @Column(name = "card")
    private String card;
    /**
     * 门店ID
     */
    @Column(name = "store_id")
    private Long storeId;
    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;

    /**
     * 门店名称
     */
    @Column(name = "store_num")
    private String storeNum;

    /**
     * 门店ID
     */
    @Column(name = "stores_id")
    private Long storesId;
    /**
     * 门店名称
     */
    @Column(name = "stores_name")
    private String storesName;

    /**
     * 门店名称
     */
    @Column(name = "stores_num")
    private String storesNum;

    /**
     * 开卡疗程ID
     */
    @Column(name = "course_project_id")
    private Long courseProjectId;
    /**
     * 开卡疗程名称
     */
    @Column(name = "course_project_name")
    private String courseProjectName;
    /**
     * 开卡疗程金额
     */
    @Column(name = "course_project_money")
    private BigDecimal courseProjectMoney;
    /**
     * 开卡疗程次数
     */
    @Column(name = "course_count")
    private Integer courseCount;
    /**
     * 开卡剩余次数
     */
    @Column(name = "course_rest_count")
    private Integer courseRestCount;
    /**
     * 开卡可用次数
     */
    @Column(name = "course_consume_count")
    private Integer courseConsumeCount;
    /**
     * 剩余金额
     */
    @Column(name = "course_rest_price")
    private BigDecimal courseRestPrice;
    /**
     * 可用金额
     */
    @Column(name = "course_consume_price")
    private BigDecimal courseConsumePrice;
    /**
     * 项目编码
     */
    @Column(name = "course_project_num")
    private String courseProjectNum;
    /**
     * 状态（0=新增，1=送审，2=审批通过，3=审核不通过）
     */
    @Column(name = "statu")
    private Integer statu;
    /**
     * 修改人ID
     */
    @Column(name = "update_id")
    private Long updateId;
    /**
     * 修改人名称
     */
    @Column(name = "update_name")
    private String updateName;
    /**
     * 修改时间
     */
    @Column(name = "update_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
    /**
     * 申请时间
     */
    @Column(name = "proposer_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date proposerDate;
    /**
     * 申请人
     */
    @Column(name = "proposer_id")
    private Long proposerId;
    /**
     * 申请人名称
     */
    @Column(name = "proposer_name")
    private String proposerName;
    /**
     * 单据编码
     */
    @Column(name = "order_code")
    private String orderCode;




}

