package com.jwipc.supplier.model.query;

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

import java.util.List;
import java.util.Set;

/**
 * 物料样品送样查询参数
 */
@Data
public class MaterialDemoQuery extends BasePageQuery {

    private Set<String> userPurchaseGroupCodes;

    private Long supplierId;

    private String purchaseGroupCode;

    private String startTime;

    private String endTime;
    /**
     * 供应商名称或者编码
     */
    private String supplierlNameOrCode;

    /**
     * 物料称名或者编码
     */
    private String materialNameOrCode;

    /**
     * 样品申请单号
     */
    private String code;

    /**
     * 审核状态： 1;新建、2已提交、3审核通过、4审核不通过
     */
    private String state;

    private Long userId;

    public List<String> getStates() {
        return DbUtil.toList(this.state);
    }
}
