package com.ruoyi.buyerapi.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 辅助帐凭证对象 buyer_auxiliary_voucher
 *
 * @author ruoyi
 * @date 2022-09-22
 */
@Data
public class BuyerAuxiliaryVoucher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 公司id */
    @Excel(name = "公司id")
    private String deptId;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 编号类型 */
    @Excel(name = "编号类型")
    private String type;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 附件张数 */
    @Excel(name = "附件张数")
    private Long accessoryNumber;

    /** 制单人 */
    @Excel(name = "制单人")
    private String producer;

    /** 支出类型 */
    @Excel(name = "支出类型")
    private String expenseType;

    /** 借方和贷方余额 */
    @Excel(name = "借方和贷方余额")
    private BigDecimal balance;

    /** 状态（1：已经提交） */
    @Excel(name = "状态", readConverterExp = "1=：已经提交")
    private String status;

    private String projectId;


    /** 凭证详情 */
    private List<BuyerVoucherInfo> buyerVoucherInfos;

    /** 凭证项目关联 */
    private List<BuyerVoucherProjectGroupBySubject> buyerVoucherProjects;

    /** 附件列表 */
    private List<BuyerFileInfo> buyerFileInfos;

}
