package cn.ibizlab.eam.core.eam_pf.filter;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;

import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;


import cn.ibizlab.eam.util.filter.QueryWrapperContext;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.ibizlab.eam.core.eam_pf.domain.PFDept;
/**
 * 关系型数据实体[PFDept] 查询条件对象
 */
@Slf4j
@Data
public class PFDeptSearchContext extends QueryWrapperContext<PFDept> {

	private String n_orgid_eq;//[组织]
	public void setN_orgid_eq(String n_orgid_eq) {
        this.n_orgid_eq = n_orgid_eq;
        if(!ObjectUtils.isEmpty(this.n_orgid_eq)){
            this.getSelectCond().eq("orgid", n_orgid_eq);
        }
    }
	private String n_deptinfo_like;//[部门信息]
	public void setN_deptinfo_like(String n_deptinfo_like) {
        this.n_deptinfo_like = n_deptinfo_like;
        if(!ObjectUtils.isEmpty(this.n_deptinfo_like)){
            this.getSelectCond().like("deptinfo", n_deptinfo_like);
        }
    }
	private Integer n_sdept_eq;//[统计归口部门]
	public void setN_sdept_eq(Integer n_sdept_eq) {
        this.n_sdept_eq = n_sdept_eq;
        if(!ObjectUtils.isEmpty(this.n_sdept_eq)){
            this.getSelectCond().eq("sdept", n_sdept_eq);
        }
    }
	private String n_mgrempname_eq;//[主管]
	public void setN_mgrempname_eq(String n_mgrempname_eq) {
        this.n_mgrempname_eq = n_mgrempname_eq;
        if(!ObjectUtils.isEmpty(this.n_mgrempname_eq)){
            this.getSelectCond().eq("mgrempname", n_mgrempname_eq);
        }
    }
	private String n_mgrempname_like;//[主管]
	public void setN_mgrempname_like(String n_mgrempname_like) {
        this.n_mgrempname_like = n_mgrempname_like;
        if(!ObjectUtils.isEmpty(this.n_mgrempname_like)){
            this.getSelectCond().like("mgrempname", n_mgrempname_like);
        }
    }
	private String n_deptpname_eq;//[上级部门]
	public void setN_deptpname_eq(String n_deptpname_eq) {
        this.n_deptpname_eq = n_deptpname_eq;
        if(!ObjectUtils.isEmpty(this.n_deptpname_eq)){
            this.getSelectCond().eq("deptpname", n_deptpname_eq);
        }
    }
	private String n_deptpname_like;//[上级部门]
	public void setN_deptpname_like(String n_deptpname_like) {
        this.n_deptpname_like = n_deptpname_like;
        if(!ObjectUtils.isEmpty(this.n_deptpname_like)){
            this.getSelectCond().like("deptpname", n_deptpname_like);
        }
    }
	private String n_deptpid_eq;//[上级部门]
	public void setN_deptpid_eq(String n_deptpid_eq) {
        this.n_deptpid_eq = n_deptpid_eq;
        if(!ObjectUtils.isEmpty(this.n_deptpid_eq)){
            this.getSelectCond().eq("deptpid", n_deptpid_eq);
        }
    }
	private String n_mgrempid_eq;//[主管]
	public void setN_mgrempid_eq(String n_mgrempid_eq) {
        this.n_mgrempid_eq = n_mgrempid_eq;
        if(!ObjectUtils.isEmpty(this.n_mgrempid_eq)){
            this.getSelectCond().eq("mgrempid", n_mgrempid_eq);
        }
    }

    /**
	 * 启用快速搜索
	 */
	public void setQuery(String query)
	{
		 this.query=query;
		 if(!StringUtils.isEmpty(query)){
			this.getSelectCond().or().like("pfdeptname",query);
		 }
	}
}




