package cn.ibizlab.eam.core.eam_core.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_core.domain.EMRFOAC;
/**
 * 关系型数据实体[EMRFOAC] 查询条件对象
 */
@Slf4j
@Data
public class EMRFOACSearchContext extends QueryWrapperContext<EMRFOAC> {

	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_rfoacinfo_like;//[信息]
	public void setN_rfoacinfo_like(String n_rfoacinfo_like) {
        this.n_rfoacinfo_like = n_rfoacinfo_like;
        if(!ObjectUtils.isEmpty(this.n_rfoacinfo_like)){
            this.getSelectCond().like("rfoacinfo", n_rfoacinfo_like);
        }
    }
	private String n_rfodenane_eq;//[现象]
	public void setN_rfodenane_eq(String n_rfodenane_eq) {
        this.n_rfodenane_eq = n_rfodenane_eq;
        if(!ObjectUtils.isEmpty(this.n_rfodenane_eq)){
            this.getSelectCond().eq("rfodenane", n_rfodenane_eq);
        }
    }
	private String n_rfodenane_like;//[现象]
	public void setN_rfodenane_like(String n_rfodenane_like) {
        this.n_rfodenane_like = n_rfodenane_like;
        if(!ObjectUtils.isEmpty(this.n_rfodenane_like)){
            this.getSelectCond().like("rfodenane", n_rfodenane_like);
        }
    }
	private String n_rfomoname_eq;//[模式]
	public void setN_rfomoname_eq(String n_rfomoname_eq) {
        this.n_rfomoname_eq = n_rfomoname_eq;
        if(!ObjectUtils.isEmpty(this.n_rfomoname_eq)){
            this.getSelectCond().eq("rfomoname", n_rfomoname_eq);
        }
    }
	private String n_rfomoname_like;//[模式]
	public void setN_rfomoname_like(String n_rfomoname_like) {
        this.n_rfomoname_like = n_rfomoname_like;
        if(!ObjectUtils.isEmpty(this.n_rfomoname_like)){
            this.getSelectCond().like("rfomoname", n_rfomoname_like);
        }
    }
	private String n_rfodeid_eq;//[现象]
	public void setN_rfodeid_eq(String n_rfodeid_eq) {
        this.n_rfodeid_eq = n_rfodeid_eq;
        if(!ObjectUtils.isEmpty(this.n_rfodeid_eq)){
            this.getSelectCond().eq("rfodeid", n_rfodeid_eq);
        }
    }
	private String n_rfomoid_eq;//[模式]
	public void setN_rfomoid_eq(String n_rfomoid_eq) {
        this.n_rfomoid_eq = n_rfomoid_eq;
        if(!ObjectUtils.isEmpty(this.n_rfomoid_eq)){
            this.getSelectCond().eq("rfomoid", n_rfomoid_eq);
        }
    }

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




