package io.renren.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.renren.common.annotation.Excel;
import io.renren.modules.util.Double2Serializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 收支总结表
 * 
 * @author jiaqiao
 * @email jiaqiao@163.com
 * @date 2022-10-13 10:00:10
 */
@Data
@TableName("business_outlay_income")
public class BusinessOutlayIncomeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Integer id;
	/**
	 * 日期
	 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date outinDate;

	@TableField(exist=false)
	@Excel(name = "日期")
	private String outinDateStr;
	/**
	 * 昨日余额
	 */
	@Excel(name = "昨日余额")
	@JsonSerialize(using = Double2Serializer.class)
	private double outinYdayBalance;
	/**
	 * 今日收入
	 */
	@Excel(name = "今日收入")
	@JsonSerialize(using = Double2Serializer.class)
	private double outinTdayIncome;
	/**
	 * 今日支出
	 */
	@Excel(name = "今日支出")
	@JsonSerialize(using = Double2Serializer.class)
	private double outinTdayOut;
	/**
	 * 今日余额
	 */
	@Excel(name = "今日余额")
	@JsonSerialize(using = Double2Serializer.class)
	private double outinTdayBalance;
	/**
	 * 收款方式
	 */
	private Integer outinCreditingWay;
	/**
	 * 收款方式
	 */
	@Excel(name = "收款方式")
	@TableField(exist=false)
	private String outinCreditingWayStr;
	/**
	 * 备注
	 */
	@Excel(name = "备注")
	private String outinRemark;
	/**
	 * 是否被收回(0-未收回，1-已收回)
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 填写人id
	 */
	private Integer writeUserId;
	/**
	 * 填写人
	 */
	@TableField(exist=false)
	@Excel(name = "填写人")
	private String writeUserStr;
    /**
     * 审批标记
     */
	private Integer approval;
	/**
	 * 收入类别
	 */
	private Integer outType;
	/**
	 * 收入类别
	 */
	@TableField(exist=false)
	private String outTypeStr;

}
