package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ssm.manage.page.BasePage;
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 java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (StoreMemberClass)实体类
 *
 * @author makejava
 * @since 2022-05-23 09:32:59
 */
@Table(name = "store_member_class")
@Getter
@Setter
public class StoreMemberClassRequest extends BasePage implements Serializable {
    private static final long serialVersionUID = -80171483145369014L;
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * 门店Id
     */
    @Column(name = "store_id")
    private Long storeId;
    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;
    /**
     * 等级编码
     */
    @Column(name = "class_num")
    private String classNum;
    /**
     * 等级名称
     */
    @Column(name = "class_name")
    private String className;
    /**
     * 充值标准
     */
    @Column(name = "recharge_standard")
    private BigDecimal rechargeStandard;
    /**
     * 疗程标准
     */
    @Column(name = "course_standard")
    private BigDecimal courseStandard;
    /**
     * 收银标准
     */
    @Column(name = "cash_decimal")
    private BigDecimal cashDecimal;
    /**
     * 录单人ID
     */
    @Column(name = "input_id")
    private Long inputId;
    /**
     * 录单人名称
     */
    @Column(name = "input_by")
    private String inputBy;
    /**
     * 录单时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "input_date")
    private Date inputDate;
    /**
     * 修改人ID
     */
    @Column(name = "update_id")
    private Long updateId;
    /**
     * 修改人名称
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "update_date")
    private Date updateDate;
    /**
     * 0=月度，1=半年度，2=一年度
     */
    @Column(name = "statistics_quarter")
    private Integer statisticsQuarter;
    /**
     * 0=启用，1=禁用
     */
    @Column(name = "state")
    private Integer state;

    @Column(name = "class_row")
    private Integer classRow;

}

