package com.jwipc.supplier.model.query;

import com.jwipc.db.DbUtil;
import com.jwipc.query.BasePageQuery;
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 SupplierQualificationChangeQuery extends BasePageQuery implements Serializable {
    @Serial
    private static final long serialVersionUID = 6471474079925997155L;
    private String code;
    private Integer changeType;
    private String supplierName;
    private String supplierCode;
    private Long supplierId;
    private Integer state;
    private Long userId;
    private String supplementCode;

    public String getSupplierNameLike() {
        return DbUtil.toLike(this.supplierName);
    }

    public String getCodeLike() {
        return DbUtil.toLike(this.code);
    }

    public String getSupplierCodeLike() {
        return DbUtil.toLike(this.supplierName);
    }
}
