package com.goafanti.common.model;

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

public class PersonnelLevelExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public PersonnelLevelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    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 personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    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 personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    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(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

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

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

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

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

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

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

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

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

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

        public Criteria andJobsIsNull() {
            addCriterion("jobs is null");
            return (Criteria) this;
        }

        public Criteria andJobsIsNotNull() {
            addCriterion("jobs is not null");
            return (Criteria) this;
        }

        public Criteria andJobsEqualTo(Integer value) {
            addCriterion("jobs =", value, "jobs");
            return (Criteria) this;
        }

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

        public Criteria andJobsGreaterThan(Integer value) {
            addCriterion("jobs >", value, "jobs");
            return (Criteria) this;
        }

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

        public Criteria andJobsLessThan(Integer value) {
            addCriterion("jobs <", value, "jobs");
            return (Criteria) this;
        }

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

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

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

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

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

        public Criteria andLvlIsNull() {
            addCriterion("lvl is null");
            return (Criteria) this;
        }

        public Criteria andLvlIsNotNull() {
            addCriterion("lvl is not null");
            return (Criteria) this;
        }

        public Criteria andLvlEqualTo(Integer value) {
            addCriterion("lvl =", value, "lvl");
            return (Criteria) this;
        }

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

        public Criteria andLvlGreaterThan(Integer value) {
            addCriterion("lvl >", value, "lvl");
            return (Criteria) this;
        }

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

        public Criteria andLvlLessThan(Integer value) {
            addCriterion("lvl <", value, "lvl");
            return (Criteria) this;
        }

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

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

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

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

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

        public Criteria andAllowanceIsNull() {
            addCriterion("allowance is null");
            return (Criteria) this;
        }

        public Criteria andAllowanceIsNotNull() {
            addCriterion("allowance is not null");
            return (Criteria) this;
        }

        public Criteria andAllowanceEqualTo(BigDecimal value) {
            addCriterion("allowance =", value, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceNotEqualTo(BigDecimal value) {
            addCriterion("allowance <>", value, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceGreaterThan(BigDecimal value) {
            addCriterion("allowance >", value, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("allowance >=", value, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceLessThan(BigDecimal value) {
            addCriterion("allowance <", value, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("allowance <=", value, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceIn(List<BigDecimal> values) {
            addCriterion("allowance in", values, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceNotIn(List<BigDecimal> values) {
            addCriterion("allowance not in", values, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("allowance between", value1, value2, "allowance");
            return (Criteria) this;
        }

        public Criteria andAllowanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("allowance not between", value1, value2, "allowance");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsIsNull() {
            addCriterion("alive_rewards is null");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsIsNotNull() {
            addCriterion("alive_rewards is not null");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsEqualTo(BigDecimal value) {
            addCriterion("alive_rewards =", value, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsNotEqualTo(BigDecimal value) {
            addCriterion("alive_rewards <>", value, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsGreaterThan(BigDecimal value) {
            addCriterion("alive_rewards >", value, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("alive_rewards >=", value, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsLessThan(BigDecimal value) {
            addCriterion("alive_rewards <", value, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("alive_rewards <=", value, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsIn(List<BigDecimal> values) {
            addCriterion("alive_rewards in", values, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsNotIn(List<BigDecimal> values) {
            addCriterion("alive_rewards not in", values, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("alive_rewards between", value1, value2, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andAliveRewardsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("alive_rewards not between", value1, value2, "aliveRewards");
            return (Criteria) this;
        }

        public Criteria andRewardsIsNull() {
            addCriterion("rewards is null");
            return (Criteria) this;
        }

        public Criteria andRewardsIsNotNull() {
            addCriterion("rewards is not null");
            return (Criteria) this;
        }

        public Criteria andRewardsEqualTo(BigDecimal value) {
            addCriterion("rewards =", value, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsNotEqualTo(BigDecimal value) {
            addCriterion("rewards <>", value, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsGreaterThan(BigDecimal value) {
            addCriterion("rewards >", value, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rewards >=", value, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsLessThan(BigDecimal value) {
            addCriterion("rewards <", value, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rewards <=", value, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsIn(List<BigDecimal> values) {
            addCriterion("rewards in", values, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsNotIn(List<BigDecimal> values) {
            addCriterion("rewards not in", values, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rewards between", value1, value2, "rewards");
            return (Criteria) this;
        }

        public Criteria andRewardsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rewards not between", value1, value2, "rewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsIsNull() {
            addCriterion("two_rewards is null");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsIsNotNull() {
            addCriterion("two_rewards is not null");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsEqualTo(BigDecimal value) {
            addCriterion("two_rewards =", value, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsNotEqualTo(BigDecimal value) {
            addCriterion("two_rewards <>", value, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsGreaterThan(BigDecimal value) {
            addCriterion("two_rewards >", value, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("two_rewards >=", value, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsLessThan(BigDecimal value) {
            addCriterion("two_rewards <", value, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("two_rewards <=", value, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsIn(List<BigDecimal> values) {
            addCriterion("two_rewards in", values, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsNotIn(List<BigDecimal> values) {
            addCriterion("two_rewards not in", values, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("two_rewards between", value1, value2, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andTwoRewardsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("two_rewards not between", value1, value2, "twoRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsIsNull() {
            addCriterion("three_rewards is null");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsIsNotNull() {
            addCriterion("three_rewards is not null");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsEqualTo(BigDecimal value) {
            addCriterion("three_rewards =", value, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsNotEqualTo(BigDecimal value) {
            addCriterion("three_rewards <>", value, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsGreaterThan(BigDecimal value) {
            addCriterion("three_rewards >", value, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("three_rewards >=", value, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsLessThan(BigDecimal value) {
            addCriterion("three_rewards <", value, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("three_rewards <=", value, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsIn(List<BigDecimal> values) {
            addCriterion("three_rewards in", values, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsNotIn(List<BigDecimal> values) {
            addCriterion("three_rewards not in", values, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("three_rewards between", value1, value2, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andThreeRewardsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("three_rewards not between", value1, value2, "threeRewards");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table personnel_level
     *
     * @mbg.generated do_not_delete_during_merge Wed Apr 29 14:40:21 CST 2020
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    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);
        }
    }
}