package com.jwipc.spe.model.query;

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

import java.io.Serial;
import java.io.Serializable;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class AppraiseSupplierQuery implements Serializable {
    @Serial
    private static final long serialVersionUID = 3344450200528120208L;
    private Long planId;
    private String supplier;
    private String purchaseUser;
    private String sqe;
    private String ce;
    private String level;
    private String purchaseCategoryNames;

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

    public String getPurchaseUserLike() {
        return DbUtil.toLike(this.purchaseUser);
    }

    public String getSqeLike() {
        return DbUtil.toLike(this.sqe);
    }

    public String getCeLike() {
        return DbUtil.toLike(this.ce);
    }

    public String getPurchaseCategoryNamesLike() {
        return DbUtil.toLike(this.purchaseCategoryNames);
    }
}
