package net.wicp.tams.app.duckula.controller.bean.models;

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

public class SysTenantRelaExample {
    /**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	protected String orderByClause;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	protected boolean distinct;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	protected List<Criteria> oredCriteria;

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public SysTenantRelaExample() {
		oredCriteria = new ArrayList<>();
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public String getOrderByClause() {
		return orderByClause;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public boolean isDistinct() {
		return distinct;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	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 sys_tenant_rela
	 * @mbg.generated
	 */
	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 sys_tenant_rela
	 * @mbg.generated
	 */
	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

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

		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(Long value) {
			addCriterion("id =", value, "id");
			return (Criteria) this;
		}

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

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

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

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

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

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

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

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

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

		public Criteria andTenantMainIsNull() {
			addCriterion("tenant_main is null");
			return (Criteria) this;
		}

		public Criteria andTenantMainIsNotNull() {
			addCriterion("tenant_main is not null");
			return (Criteria) this;
		}

		public Criteria andTenantMainEqualTo(Long value) {
			addCriterion("tenant_main =", value, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainNotEqualTo(Long value) {
			addCriterion("tenant_main <>", value, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainGreaterThan(Long value) {
			addCriterion("tenant_main >", value, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainGreaterThanOrEqualTo(Long value) {
			addCriterion("tenant_main >=", value, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainLessThan(Long value) {
			addCriterion("tenant_main <", value, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainLessThanOrEqualTo(Long value) {
			addCriterion("tenant_main <=", value, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainIn(List<Long> values) {
			addCriterion("tenant_main in", values, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainNotIn(List<Long> values) {
			addCriterion("tenant_main not in", values, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainBetween(Long value1, Long value2) {
			addCriterion("tenant_main between", value1, value2, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantMainNotBetween(Long value1, Long value2) {
			addCriterion("tenant_main not between", value1, value2, "tenantMain");
			return (Criteria) this;
		}

		public Criteria andTenantRelaIsNull() {
			addCriterion("tenant_rela is null");
			return (Criteria) this;
		}

		public Criteria andTenantRelaIsNotNull() {
			addCriterion("tenant_rela is not null");
			return (Criteria) this;
		}

		public Criteria andTenantRelaEqualTo(Long value) {
			addCriterion("tenant_rela =", value, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaNotEqualTo(Long value) {
			addCriterion("tenant_rela <>", value, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaGreaterThan(Long value) {
			addCriterion("tenant_rela >", value, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaGreaterThanOrEqualTo(Long value) {
			addCriterion("tenant_rela >=", value, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaLessThan(Long value) {
			addCriterion("tenant_rela <", value, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaLessThanOrEqualTo(Long value) {
			addCriterion("tenant_rela <=", value, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaIn(List<Long> values) {
			addCriterion("tenant_rela in", values, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaNotIn(List<Long> values) {
			addCriterion("tenant_rela not in", values, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaBetween(Long value1, Long value2) {
			addCriterion("tenant_rela between", value1, value2, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andTenantRelaNotBetween(Long value1, Long value2) {
			addCriterion("tenant_rela not between", value1, value2, "tenantRela");
			return (Criteria) this;
		}

		public Criteria andRelaTypeIsNull() {
			addCriterion("rela_type is null");
			return (Criteria) this;
		}

		public Criteria andRelaTypeIsNotNull() {
			addCriterion("rela_type is not null");
			return (Criteria) this;
		}

		public Criteria andRelaTypeEqualTo(String value) {
			addCriterion("rela_type =", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeNotEqualTo(String value) {
			addCriterion("rela_type <>", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeGreaterThan(String value) {
			addCriterion("rela_type >", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeGreaterThanOrEqualTo(String value) {
			addCriterion("rela_type >=", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeLessThan(String value) {
			addCriterion("rela_type <", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeLessThanOrEqualTo(String value) {
			addCriterion("rela_type <=", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeLike(String value) {
			addCriterion("rela_type like", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeNotLike(String value) {
			addCriterion("rela_type not like", value, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeIn(List<String> values) {
			addCriterion("rela_type in", values, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeNotIn(List<String> values) {
			addCriterion("rela_type not in", values, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeBetween(String value1, String value2) {
			addCriterion("rela_type between", value1, value2, "relaType");
			return (Criteria) this;
		}

		public Criteria andRelaTypeNotBetween(String value1, String value2) {
			addCriterion("rela_type not between", value1, value2, "relaType");
			return (Criteria) this;
		}

		public Criteria andStatusIsNull() {
			addCriterion("status is null");
			return (Criteria) this;
		}

		public Criteria andStatusIsNotNull() {
			addCriterion("status is not null");
			return (Criteria) this;
		}

		public Criteria andStatusEqualTo(String value) {
			addCriterion("status =", value, "status");
			return (Criteria) this;
		}

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

		public Criteria andStatusGreaterThan(String value) {
			addCriterion("status >", value, "status");
			return (Criteria) this;
		}

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

		public Criteria andStatusLessThan(String value) {
			addCriterion("status <", value, "status");
			return (Criteria) this;
		}

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

		public Criteria andStatusLike(String value) {
			addCriterion("status like", value, "status");
			return (Criteria) this;
		}

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

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

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

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

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

		public Criteria andStatusTimeIsNull() {
			addCriterion("status_time is null");
			return (Criteria) this;
		}

		public Criteria andStatusTimeIsNotNull() {
			addCriterion("status_time is not null");
			return (Criteria) this;
		}

		public Criteria andStatusTimeEqualTo(Date value) {
			addCriterion("status_time =", value, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeNotEqualTo(Date value) {
			addCriterion("status_time <>", value, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeGreaterThan(Date value) {
			addCriterion("status_time >", value, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeGreaterThanOrEqualTo(Date value) {
			addCriterion("status_time >=", value, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeLessThan(Date value) {
			addCriterion("status_time <", value, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeLessThanOrEqualTo(Date value) {
			addCriterion("status_time <=", value, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeIn(List<Date> values) {
			addCriterion("status_time in", values, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeNotIn(List<Date> values) {
			addCriterion("status_time not in", values, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeBetween(Date value1, Date value2) {
			addCriterion("status_time between", value1, value2, "statusTime");
			return (Criteria) this;
		}

		public Criteria andStatusTimeNotBetween(Date value1, Date value2) {
			addCriterion("status_time not between", value1, value2, "statusTime");
			return (Criteria) this;
		}

		public Criteria andOperateReasonIsNull() {
			addCriterion("operate_reason is null");
			return (Criteria) this;
		}

		public Criteria andOperateReasonIsNotNull() {
			addCriterion("operate_reason is not null");
			return (Criteria) this;
		}

		public Criteria andOperateReasonEqualTo(String value) {
			addCriterion("operate_reason =", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonNotEqualTo(String value) {
			addCriterion("operate_reason <>", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonGreaterThan(String value) {
			addCriterion("operate_reason >", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonGreaterThanOrEqualTo(String value) {
			addCriterion("operate_reason >=", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonLessThan(String value) {
			addCriterion("operate_reason <", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonLessThanOrEqualTo(String value) {
			addCriterion("operate_reason <=", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonLike(String value) {
			addCriterion("operate_reason like", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonNotLike(String value) {
			addCriterion("operate_reason not like", value, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonIn(List<String> values) {
			addCriterion("operate_reason in", values, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonNotIn(List<String> values) {
			addCriterion("operate_reason not in", values, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonBetween(String value1, String value2) {
			addCriterion("operate_reason between", value1, value2, "operateReason");
			return (Criteria) this;
		}

		public Criteria andOperateReasonNotBetween(String value1, String value2) {
			addCriterion("operate_reason not between", value1, value2, "operateReason");
			return (Criteria) this;
		}
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table sys_tenant_rela
	 * @mbg.generated
	 */
	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 sys_tenant_rela
     *
     * @mbg.generated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }
}