package com.ssm.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "course_money")
public class CourseMoney {

    @Transient
    private String storeName;
    private BigDecimal coursePromotionRepay;

    private Long id;
    private Long storeId;

    @DateTimeFormat(pattern="yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date date;
    private BigDecimal openning;
    private BigDecimal courseMoney;
    private BigDecimal courseRepay;
    private BigDecimal cashRefund;
    private BigDecimal coursePromotion;
    private BigDecimal init;
    private BigDecimal courseTurnStore;
    private BigDecimal cardChange;
    private BigDecimal cashMoney;
    private BigDecimal courseRefundMoney;
    private BigDecimal courseTurnCharge;
    private BigDecimal courseTurnStoreMoney;
    private BigDecimal balance;
    private BigDecimal courseRepayMoney;
}
