package com.jwipc.tender.model.query;

import com.baomidou.mybatisplus.core.enums.SqlLike;
import com.baomidou.mybatisplus.core.toolkit.sql.SqlUtils;
import com.google.common.base.Strings;
import com.jwipc.query.BasePageQuery;
import lombok.Data;

/**
 * @author Al
 * @create 2024-02-27 14:31
 */
@Data
public class ExpertManageQuery extends BasePageQuery {
    private Integer type;
    private String name;
    private String email;
    private Long tenderId;
    private String code;
    private String dc;
    private Long category;

    public String getLikeCode(){
        if(!Strings.isNullOrEmpty(this.code)){
            return SqlUtils.concatLike(this.code, SqlLike.DEFAULT);
        }
        return "";
    }
}
