package com.aiotagro.cattletrade.business.entity;

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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * 销售概览实体类
 *
 * @author System
 * @date 2025-01-20
 */
@Data
@TableName("salesoverview")
public class SalesOverview implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 采购总额(元)
     */
    @TableField("toal_procurement_amount")
    private BigDecimal toalProcurementAmount;

    /**
     * 销售总额(元)
     */
    @TableField("toal_sales_amount")
    private BigDecimal toalSalesAmount;

    /**
     * 利润(元)
     */
    @TableField("profits")
    private BigDecimal profits;

    /**
     * 应收货款(元)
     */
    @TableField("accounts_receivable")
    private BigDecimal accountsReceivable;

    /**
     * 未收货款(元)
     */
    @TableField("uncollected_payment")
    private BigDecimal uncollectedPayment;

    /**
     * 实收货款(元)
     */
    @TableField("actual_payment")
    private BigDecimal actualPayment;

    /**
     * 采购数量(头)
     */
    @TableField("total_purchase")
    private Integer totalPurchase;

    /**
     * 采购单数(车)
     */
    @TableField("total_order")
    private Integer totalOrder;

    /**
     * 销售单数(单)
     */
    @TableField("total_sales")
    private Integer totalSales;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("up_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date upTime;
}

