package com.ruoyi.cai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.constant.DateConstant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 每日账单统计对象 cai_day_income_statistics
 *
 * @author 77
 * @date 2024-01-22
 */
@Data
@TableName("cai_day_income_statistics")
public class DayIncomeStatistics implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     *
     */
    @DateTimeFormat(pattern = DateConstant.PATTERN_DATE)
    @JsonFormat(pattern = DateConstant.PATTERN_DATE)
    private LocalDate date;
    /**
     * 充值金额
     */
    private BigDecimal expInMoney;
    /**
     * 提现金额
     */
    private BigDecimal outMoney;
    /**
     * vip金额
     */
    private BigDecimal vipInMoney;
    /**
     * 提现数量
     */
    private Integer cashCount;
    /**
     * 充值订单
     */
    private Integer orderCount;
    /**
     * vip订单
     */
    private Integer vipCount;
    /**
     * 增加金币总数量
     */
    private Long modifyCoinAdd;
    /**
     * 减少金币总数量
     */
    private Long modifyCoinSub;
    /**
     * 增加收益金币总数量
     */
    private Long modifyIncomeAdd;
    /**
     * 减少收益金币总数量
     */
    private Long modifyIncomeSub;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;

}
