package com.ssm.manage.entity;

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

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

/**
 * (StoreTurnTreatment)实体类
 *
 * @author makejava
 * @since 2022-03-16 10:03:00
 */
@Table(name = "store_turn_treatment")
@JsonIgnoreProperties(ignoreUnknown = true)
public class StoreTurnTreatment{
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Getter
    @Setter
    @Transient
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Getter@Setter
    @Transient
    private Date endTime;
    @Column(name = "course_store_num")
    private String courseStoreNum;
    /**
     * 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;
    /**
     * 会员卡
     */
    @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;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseAccountId() {
        return courseAccountId;
    }

    public void setCourseAccountId(Long courseAccountId) {
        this.courseAccountId = courseAccountId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Long getCourseProjectId() {
        return courseProjectId;
    }

    public void setCourseProjectId(Long courseProjectId) {
        this.courseProjectId = courseProjectId;
    }

    public String getCourseProjectName() {
        return courseProjectName;
    }

    public void setCourseProjectName(String courseProjectName) {
        this.courseProjectName = courseProjectName;
    }

    public BigDecimal getCourseProjectMoney() {
        return courseProjectMoney;
    }

    public void setCourseProjectMoney(BigDecimal courseProjectMoney) {
        this.courseProjectMoney = courseProjectMoney;
    }

    public Integer getCourseCount() {
        return courseCount;
    }

    public void setCourseCount(Integer courseCount) {
        this.courseCount = courseCount;
    }

    public Integer getCourseRestCount() {
        return courseRestCount;
    }

    public void setCourseRestCount(Integer courseRestCount) {
        this.courseRestCount = courseRestCount;
    }

    public Integer getCourseConsumeCount() {
        return courseConsumeCount;
    }

    public void setCourseConsumeCount(Integer courseConsumeCount) {
        this.courseConsumeCount = courseConsumeCount;
    }

    public BigDecimal getCourseRestPrice() {
        return courseRestPrice;
    }

    public void setCourseRestPrice(BigDecimal courseRestPrice) {
        this.courseRestPrice = courseRestPrice;
    }

    public BigDecimal getCourseConsumePrice() {
        return courseConsumePrice;
    }

    public void setCourseConsumePrice(BigDecimal courseConsumePrice) {
        this.courseConsumePrice = courseConsumePrice;
    }

    public String getCourseProjectNum() {
        return courseProjectNum;
    }

    public void setCourseProjectNum(String courseProjectNum) {
        this.courseProjectNum = courseProjectNum;
    }

    public Integer getStatu() {
        return statu;
    }

    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getProposerDate() {
        return proposerDate;
    }

    public void setProposerDate(Date proposerDate) {
        this.proposerDate = proposerDate;
    }

    public Long getProposerId() {
        return proposerId;
    }

    public void setProposerId(Long proposerId) {
        this.proposerId = proposerId;
    }

    public String getProposerName() {
        return proposerName;
    }

    public void setProposerName(String proposerName) {
        this.proposerName = proposerName;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(String storeNum) {
        this.storeNum = storeNum;
    }

    public Long getStoresId() {
        return storesId;
    }

    public void setStoresId(Long storesId) {
        this.storesId = storesId;
    }

    public String getStoresName() {
        return storesName;
    }

    public void setStoresName(String storesName) {
        this.storesName = storesName;
    }

    public String getStoresNum() {
        return storesNum;
    }

    public void setStoresNum(String storesNum) {
        this.storesNum = storesNum;
    }

    public String getCourseStoreNum() {
        return courseStoreNum;
    }

    public void setCourseStoreNum(String courseStoreNum) {
        this.courseStoreNum = courseStoreNum;
    }
}

