package com.mini.capi.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 每日收支汇总
 * </p>
 *
 * @author gaoxq
 * @since 2025-08-25
 */
@Getter
@Setter
@TableName("biz_daily_summary")
public class DailySummary implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 汇总日期
     */
    @TableField("summary_date")
    private LocalDate summaryDate;

    /**
     * 当日总收入
     */
    @TableField("total_income")
    private BigDecimal totalIncome;

    /**
     * 当日总支出
     */
    @TableField("total_expense")
    private BigDecimal totalExpense;

    /**
     * 当日净现金流
     */
    @TableField("net_cash_flow")
    private BigDecimal netCashFlow;

    /**
     * 交易总笔数
     */
    @TableField("transactions_count")
    private String transactionsCount;

    /**
     * 租户id
     */
    @TableField("f_tenant_id")
    private String fTenantId;

    /**
     * 流程id
     */
    @TableField("f_flow_id")
    private String fFlowId;

    /**
     * 流程任务主键
     */
    @TableField("f_flow_task_id")
    private String fFlowTaskId;

    /**
     * 流程任务状态
     */
    @TableField("f_flow_state")
    private Integer fFlowState;
}
