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 = "recharge_money")
public class RechargeMoney {

    @Transient
    private String storeName;

    private BigDecimal zengka;
    private Long id;
    private BigDecimal openningGift;
    private BigDecimal balanceGift;
    private BigDecimal cashMoney;
    private BigDecimal cashRechargeGifMoney;
    private BigDecimal cashRefund;
    private BigDecimal refundCashGifMoney;
    private BigDecimal courseMoney;
    private BigDecimal coursePromotion;
    private BigDecimal courseTurnRecharge;
    private BigDecimal groupPurchase;
    private BigDecimal init;
    private BigDecimal rechargeMoney;
    private BigDecimal rechargeGifMoney;
    private BigDecimal rechargeRefundMoney;
    private BigDecimal refundGifMoney;
    private BigDecimal rechargeRepay;
    private BigDecimal repayRechargeGifMoney;
    private BigDecimal turnInStoreGifMoney;
    private BigDecimal turnOutStoreGifMoney;
    private Long storeId;

    @DateTimeFormat(pattern="yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date date;
    private BigDecimal openning;
    private BigDecimal balance;
    private BigDecimal rechargeRepayMoney;
}
