package com.jwipc.finance.model.query;

import cn.hutool.core.util.StrUtil;
import com.jwipc.query.BasePageQuery;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * @author Al
 * @create 2023-07-18 15:36
 */
@Data
public class InvoicedDetailQuery extends BasePageQuery {
    private String sort;
    private String order;
    /**
     * 创建时间(起)
     */
    private String createTimeStart;
    /**
     * 创建时间(至)
     */
    private String createTimeEnd;

    private String invoiceDateStart;

    private String invoiceDateEnd;

    /**
     * 供应商编码或名称
     */
    private String supCodeOrName;
    /**
     * 开票申请单号
     */
    private String invoiceApplyNo;
    /**
     * 供应商编码
     */
    private String supplierCode;
    /**
     * 发票
     */
    private String invoiceVoucher;
    private String invoiceNumber;
    /**
     * 入库凭证过账日期(起)
     */
    private String mvPostDateStart;
    /**
     * 入库凭证过账日期(至)
     */
    private String mvPostDateEnd;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 扣款状态
     */
    private String deductionStatus;
    private String companyCode;
    private String financeConfirmUserName;

    /**
     * 备注
     */
    private String note;
    public String getSort(){
        if(StringUtils.isNotEmpty(this.sort)){
            return StrUtil.toUnderlineCase(this.sort);
        }
        return "";
    }
}
