package com.goafanti.common.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DemandFollowExample {
    /**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	protected String orderByClause;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	protected boolean distinct;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	protected List<Criteria> oredCriteria;

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public DemandFollowExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public String getOrderByClause() {
		return orderByClause;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public boolean isDistinct() {
		return distinct;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andIdIsNull() {
			addCriterion("id is null");
			return (Criteria) this;
		}

		public Criteria andIdIsNotNull() {
			addCriterion("id is not null");
			return (Criteria) this;
		}

		public Criteria andIdEqualTo(String value) {
			addCriterion("id =", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotEqualTo(String value) {
			addCriterion("id <>", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThan(String value) {
			addCriterion("id >", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThanOrEqualTo(String value) {
			addCriterion("id >=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThan(String value) {
			addCriterion("id <", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThanOrEqualTo(String value) {
			addCriterion("id <=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLike(String value) {
			addCriterion("id like", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotLike(String value) {
			addCriterion("id not like", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdIn(List<String> values) {
			addCriterion("id in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotIn(List<String> values) {
			addCriterion("id not in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdBetween(String value1, String value2) {
			addCriterion("id between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotBetween(String value1, String value2) {
			addCriterion("id not between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andDemandIdIsNull() {
			addCriterion("demand_id is null");
			return (Criteria) this;
		}

		public Criteria andDemandIdIsNotNull() {
			addCriterion("demand_id is not null");
			return (Criteria) this;
		}

		public Criteria andDemandIdEqualTo(String value) {
			addCriterion("demand_id =", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdNotEqualTo(String value) {
			addCriterion("demand_id <>", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdGreaterThan(String value) {
			addCriterion("demand_id >", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdGreaterThanOrEqualTo(String value) {
			addCriterion("demand_id >=", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdLessThan(String value) {
			addCriterion("demand_id <", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdLessThanOrEqualTo(String value) {
			addCriterion("demand_id <=", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdLike(String value) {
			addCriterion("demand_id like", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdNotLike(String value) {
			addCriterion("demand_id not like", value, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdIn(List<String> values) {
			addCriterion("demand_id in", values, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdNotIn(List<String> values) {
			addCriterion("demand_id not in", values, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdBetween(String value1, String value2) {
			addCriterion("demand_id between", value1, value2, "demandId");
			return (Criteria) this;
		}

		public Criteria andDemandIdNotBetween(String value1, String value2) {
			addCriterion("demand_id not between", value1, value2, "demandId");
			return (Criteria) this;
		}

		public Criteria andOrganizationIsNull() {
			addCriterion("organization is null");
			return (Criteria) this;
		}

		public Criteria andOrganizationIsNotNull() {
			addCriterion("organization is not null");
			return (Criteria) this;
		}

		public Criteria andOrganizationEqualTo(String value) {
			addCriterion("organization =", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationNotEqualTo(String value) {
			addCriterion("organization <>", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationGreaterThan(String value) {
			addCriterion("organization >", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationGreaterThanOrEqualTo(String value) {
			addCriterion("organization >=", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationLessThan(String value) {
			addCriterion("organization <", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationLessThanOrEqualTo(String value) {
			addCriterion("organization <=", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationLike(String value) {
			addCriterion("organization like", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationNotLike(String value) {
			addCriterion("organization not like", value, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationIn(List<String> values) {
			addCriterion("organization in", values, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationNotIn(List<String> values) {
			addCriterion("organization not in", values, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationBetween(String value1, String value2) {
			addCriterion("organization between", value1, value2, "organization");
			return (Criteria) this;
		}

		public Criteria andOrganizationNotBetween(String value1, String value2) {
			addCriterion("organization not between", value1, value2, "organization");
			return (Criteria) this;
		}

		public Criteria andContactsIsNull() {
			addCriterion("contacts is null");
			return (Criteria) this;
		}

		public Criteria andContactsIsNotNull() {
			addCriterion("contacts is not null");
			return (Criteria) this;
		}

		public Criteria andContactsEqualTo(String value) {
			addCriterion("contacts =", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsNotEqualTo(String value) {
			addCriterion("contacts <>", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsGreaterThan(String value) {
			addCriterion("contacts >", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsGreaterThanOrEqualTo(String value) {
			addCriterion("contacts >=", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsLessThan(String value) {
			addCriterion("contacts <", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsLessThanOrEqualTo(String value) {
			addCriterion("contacts <=", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsLike(String value) {
			addCriterion("contacts like", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsNotLike(String value) {
			addCriterion("contacts not like", value, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsIn(List<String> values) {
			addCriterion("contacts in", values, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsNotIn(List<String> values) {
			addCriterion("contacts not in", values, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsBetween(String value1, String value2) {
			addCriterion("contacts between", value1, value2, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactsNotBetween(String value1, String value2) {
			addCriterion("contacts not between", value1, value2, "contacts");
			return (Criteria) this;
		}

		public Criteria andContactMobileIsNull() {
			addCriterion("contact_mobile is null");
			return (Criteria) this;
		}

		public Criteria andContactMobileIsNotNull() {
			addCriterion("contact_mobile is not null");
			return (Criteria) this;
		}

		public Criteria andContactMobileEqualTo(String value) {
			addCriterion("contact_mobile =", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileNotEqualTo(String value) {
			addCriterion("contact_mobile <>", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileGreaterThan(String value) {
			addCriterion("contact_mobile >", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileGreaterThanOrEqualTo(String value) {
			addCriterion("contact_mobile >=", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileLessThan(String value) {
			addCriterion("contact_mobile <", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileLessThanOrEqualTo(String value) {
			addCriterion("contact_mobile <=", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileLike(String value) {
			addCriterion("contact_mobile like", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileNotLike(String value) {
			addCriterion("contact_mobile not like", value, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileIn(List<String> values) {
			addCriterion("contact_mobile in", values, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileNotIn(List<String> values) {
			addCriterion("contact_mobile not in", values, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileBetween(String value1, String value2) {
			addCriterion("contact_mobile between", value1, value2, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andContactMobileNotBetween(String value1, String value2) {
			addCriterion("contact_mobile not between", value1, value2, "contactMobile");
			return (Criteria) this;
		}

		public Criteria andResultIsNull() {
			addCriterion("result is null");
			return (Criteria) this;
		}

		public Criteria andResultIsNotNull() {
			addCriterion("result is not null");
			return (Criteria) this;
		}

		public Criteria andResultEqualTo(Integer value) {
			addCriterion("result =", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotEqualTo(Integer value) {
			addCriterion("result <>", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultGreaterThan(Integer value) {
			addCriterion("result >", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultGreaterThanOrEqualTo(Integer value) {
			addCriterion("result >=", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultLessThan(Integer value) {
			addCriterion("result <", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultLessThanOrEqualTo(Integer value) {
			addCriterion("result <=", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultIn(List<Integer> values) {
			addCriterion("result in", values, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotIn(List<Integer> values) {
			addCriterion("result not in", values, "result");
			return (Criteria) this;
		}

		public Criteria andResultBetween(Integer value1, Integer value2) {
			addCriterion("result between", value1, value2, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotBetween(Integer value1, Integer value2) {
			addCriterion("result not between", value1, value2, "result");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeIsNull() {
			addCriterion("last_follow_time is null");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeIsNotNull() {
			addCriterion("last_follow_time is not null");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeEqualTo(Date value) {
			addCriterion("last_follow_time =", value, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeNotEqualTo(Date value) {
			addCriterion("last_follow_time <>", value, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeGreaterThan(Date value) {
			addCriterion("last_follow_time >", value, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeGreaterThanOrEqualTo(Date value) {
			addCriterion("last_follow_time >=", value, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeLessThan(Date value) {
			addCriterion("last_follow_time <", value, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeLessThanOrEqualTo(Date value) {
			addCriterion("last_follow_time <=", value, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeIn(List<Date> values) {
			addCriterion("last_follow_time in", values, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeNotIn(List<Date> values) {
			addCriterion("last_follow_time not in", values, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeBetween(Date value1, Date value2) {
			addCriterion("last_follow_time between", value1, value2, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andLastFollowTimeNotBetween(Date value1, Date value2) {
			addCriterion("last_follow_time not between", value1, value2, "lastFollowTime");
			return (Criteria) this;
		}

		public Criteria andSourcesIsNull() {
			addCriterion("sources is null");
			return (Criteria) this;
		}

		public Criteria andSourcesIsNotNull() {
			addCriterion("sources is not null");
			return (Criteria) this;
		}

		public Criteria andSourcesEqualTo(String value) {
			addCriterion("sources =", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesNotEqualTo(String value) {
			addCriterion("sources <>", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesGreaterThan(String value) {
			addCriterion("sources >", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesGreaterThanOrEqualTo(String value) {
			addCriterion("sources >=", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesLessThan(String value) {
			addCriterion("sources <", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesLessThanOrEqualTo(String value) {
			addCriterion("sources <=", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesLike(String value) {
			addCriterion("sources like", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesNotLike(String value) {
			addCriterion("sources not like", value, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesIn(List<String> values) {
			addCriterion("sources in", values, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesNotIn(List<String> values) {
			addCriterion("sources not in", values, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesBetween(String value1, String value2) {
			addCriterion("sources between", value1, value2, "sources");
			return (Criteria) this;
		}

		public Criteria andSourcesNotBetween(String value1, String value2) {
			addCriterion("sources not between", value1, value2, "sources");
			return (Criteria) this;
		}

		public Criteria andRemarkIsNull() {
			addCriterion("remark is null");
			return (Criteria) this;
		}

		public Criteria andRemarkIsNotNull() {
			addCriterion("remark is not null");
			return (Criteria) this;
		}

		public Criteria andRemarkEqualTo(String value) {
			addCriterion("remark =", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkNotEqualTo(String value) {
			addCriterion("remark <>", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkGreaterThan(String value) {
			addCriterion("remark >", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkGreaterThanOrEqualTo(String value) {
			addCriterion("remark >=", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkLessThan(String value) {
			addCriterion("remark <", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkLessThanOrEqualTo(String value) {
			addCriterion("remark <=", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkLike(String value) {
			addCriterion("remark like", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkNotLike(String value) {
			addCriterion("remark not like", value, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkIn(List<String> values) {
			addCriterion("remark in", values, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkNotIn(List<String> values) {
			addCriterion("remark not in", values, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkBetween(String value1, String value2) {
			addCriterion("remark between", value1, value2, "remark");
			return (Criteria) this;
		}

		public Criteria andRemarkNotBetween(String value1, String value2) {
			addCriterion("remark not between", value1, value2, "remark");
			return (Criteria) this;
		}
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table demand_follow
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public static class Criterion {
		private String condition;
		private Object value;
		private Object secondValue;
		private boolean noValue;
		private boolean singleValue;
		private boolean betweenValue;
		private boolean listValue;
		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}

	/**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table demand_follow
     *
     * @mbg.generated do_not_delete_during_merge Thu Mar 22 08:39:04 CST 2018
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }
}