package com.jwipc.supplier.model.query;

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

import java.io.Serial;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class SupplierPurchaseCategoryBaseQuery extends BasePageQuery {
    @Serial
    private static final long serialVersionUID = -2875545281165638209L;
    private Integer state;
    private String supplier;
    private String category;
    private String purchaseGroupCode;
    private String supplierType;
    private Integer freezeFlag;
    private Integer freezeFlagMain;
    private Integer registerType;
    private Integer reportFlag;
    private Integer eliminateFlag;
    //10 资源整合供应商 30 客供供应商（临时存储）
    private Integer supplierAttribution;

    public String getSupplierLike(){
        return DbUtil.toLike(this.supplier);
    }
    public String getCategoryLike(){
        return DbUtil.toLike(this.category);
    }
}
