package com.jwipc.order.model.query;/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */

import com.jwipc.db.DbUtil;
import com.jwipc.query.BaseSortQuery;
import lombok.Data;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PurchaseOrderQuery extends BaseSortQuery {
    @Serial
    private static final long serialVersionUID = 7908550584420489368L;
    private String orderCode;
    private String materialCode;
    private String supplierErpCode;
    private String orderTypeCode;
    private String startCreateDate;
    private String endCreateDate;
    private String startEffectiveDate;
    private String endEffectiveDate;
    private String purchaseGroupCode;
    private String createName;
    private String markFlag;
    private String finConf;
    private Long finUserId;

    private String finUserName;
    private String state;
    private String companyCode;
    private String factory;
    private String supplierCode;
    private String currencyCode;
    private String contractCode;
    private String purchaseUser;
    private Integer signStatus;
    private Integer fileState;
    private String batchNo;
    private String companyName;
    private Integer advanceFlag;
    private LocalDateTime effectiveDate;
    /**
     * 当前登录人id
     */
    private Long loginUserId;
    public List<String> getStateList() {
        return DbUtil.toList(this.state);
    }
}
