package com.ssm.manage.extendEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@ToString
public class NegativeDayStatistic {
    private Integer selectType;
    private String selectDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    /**
     * 门店编码
     */
    @Column(name = "store_id")
    private Long storeId;

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

    /**
     * 日期时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    /**
     * 期初*
     */
    @Column(name = "start_money")
    private BigDecimal startMoney;

    /**
     * 结存
     */
    @Column(name = "end_money")
    private BigDecimal endMoney;
    /**
     * 充值金额*
     */
    private BigDecimal rechargeMoney;
    /**
     * 疗程金额
     */
    private BigDecimal courseMoney;
    /**
     * 还款金额*
     */
    private BigDecimal recRepayMoney;
    /**
     * 疗程还款金额
     */
    private BigDecimal courseRepayMoney;
    /**
     * 服务金额*
     */
    private BigDecimal recStoreCashMoney;
    /**
     * 服务金额
     */
    private BigDecimal courseStoreCashMoney;
    /**
     * 充值退款金额
     */
    private BigDecimal recRefundMoney;
    /**
     * 疗程退款金额
     */
    private BigDecimal courseRefundMoney;
    /**
     * 充值卡购买疗程金额
     */
    private BigDecimal cardToCourseMoney;
    /**
     * 疗程转充值金额
     */
    private BigDecimal courseToCardMoney;
    /**
     * 消费退款金额(充值卡付 疗程卡付通用)
     */
    private BigDecimal cashRefundMoney;

    private Integer type;

    private List<Long> storeIdl;
}
