package com.njzscloud.dispose.finance.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.njzscloud.dispose.common.pojo.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 对账单
 * @author ljw
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "fin_bill", autoResultMap = true)
public class BillEntity extends BaseEntity {

    /**
     * 用户 Id
     */
    private Long userId;

    /**
     * 客户 Id；cst_customer.id
     */
    private Long customerId;

    /**
     * 组织 Id
     */
    private Long orgId;

    /**
     * 账户类型；account_type，GeRen-->个人、QiYe-->企业
     */
    private String accountType;

    /**
     * 账期
     */
    private LocalDate billPeriod;

    /**
     * 账单开始时间
     */
    private LocalDate startTime;

    /**
     * 账单结束时间
     */
    private LocalDate endTime;

    /**
     * 订单数
     */
    private Integer orderCount;

    /**
     * 总车数
     */
    private Integer carCount;

    /**
     * 总质量
     */
    private Integer totalWeight;

    /**
     * 优惠金额
     */
    private BigDecimal discountMoney;

    /**
     * 账单金额
     */
    private BigDecimal totalMoney;

    /**
     * 备注
     */
    private String memo;

}

