package com.platform.yijia.pojo;

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

public class StationOilPriceExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table station_oil_price
     *
     * @mbg.generated
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table station_oil_price
     *
     * @mbg.generated
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table station_oil_price
     *
     * @mbg.generated
     */
    protected List<Criteria> oredCriteria;

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table station_oil_price
     *
     * @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 station_oil_price
     *
     * @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 station_oil_price
     *
     * @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 station_oil_price
     *
     * @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 station_oil_price
     *
     * @mbg.generated
     */
    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 andOilPriceIdIsNull() {
            addCriterion("oil_price_id is null");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdIsNotNull() {
            addCriterion("oil_price_id is not null");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdEqualTo(Integer value) {
            addCriterion("oil_price_id =", value, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdNotEqualTo(Integer value) {
            addCriterion("oil_price_id <>", value, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdGreaterThan(Integer value) {
            addCriterion("oil_price_id >", value, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("oil_price_id >=", value, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdLessThan(Integer value) {
            addCriterion("oil_price_id <", value, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdLessThanOrEqualTo(Integer value) {
            addCriterion("oil_price_id <=", value, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdIn(List<Integer> values) {
            addCriterion("oil_price_id in", values, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdNotIn(List<Integer> values) {
            addCriterion("oil_price_id not in", values, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdBetween(Integer value1, Integer value2) {
            addCriterion("oil_price_id between", value1, value2, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilPriceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("oil_price_id not between", value1, value2, "oilPriceId");
            return (Criteria) this;
        }

        public Criteria andOilNameIsNull() {
            addCriterion("oil_name is null");
            return (Criteria) this;
        }

        public Criteria andOilNameIsNotNull() {
            addCriterion("oil_name is not null");
            return (Criteria) this;
        }

        public Criteria andOilNameEqualTo(String value) {
            addCriterion("oil_name =", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameNotEqualTo(String value) {
            addCriterion("oil_name <>", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameGreaterThan(String value) {
            addCriterion("oil_name >", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameGreaterThanOrEqualTo(String value) {
            addCriterion("oil_name >=", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameLessThan(String value) {
            addCriterion("oil_name <", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameLessThanOrEqualTo(String value) {
            addCriterion("oil_name <=", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameLike(String value) {
            addCriterion("oil_name like", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameNotLike(String value) {
            addCriterion("oil_name not like", value, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameIn(List<String> values) {
            addCriterion("oil_name in", values, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameNotIn(List<String> values) {
            addCriterion("oil_name not in", values, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameBetween(String value1, String value2) {
            addCriterion("oil_name between", value1, value2, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilNameNotBetween(String value1, String value2) {
            addCriterion("oil_name not between", value1, value2, "oilName");
            return (Criteria) this;
        }

        public Criteria andOilPriceIsNull() {
            addCriterion("oil_price is null");
            return (Criteria) this;
        }

        public Criteria andOilPriceIsNotNull() {
            addCriterion("oil_price is not null");
            return (Criteria) this;
        }

        public Criteria andOilPriceEqualTo(String value) {
            addCriterion("oil_price =", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceNotEqualTo(String value) {
            addCriterion("oil_price <>", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceGreaterThan(String value) {
            addCriterion("oil_price >", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceGreaterThanOrEqualTo(String value) {
            addCriterion("oil_price >=", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceLessThan(String value) {
            addCriterion("oil_price <", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceLessThanOrEqualTo(String value) {
            addCriterion("oil_price <=", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceLike(String value) {
            addCriterion("oil_price like", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceNotLike(String value) {
            addCriterion("oil_price not like", value, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceIn(List<String> values) {
            addCriterion("oil_price in", values, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceNotIn(List<String> values) {
            addCriterion("oil_price not in", values, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceBetween(String value1, String value2) {
            addCriterion("oil_price between", value1, value2, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andOilPriceNotBetween(String value1, String value2) {
            addCriterion("oil_price not between", value1, value2, "oilPrice");
            return (Criteria) this;
        }

        public Criteria andStationIdIsNull() {
            addCriterion("station_id is null");
            return (Criteria) this;
        }

        public Criteria andStationIdIsNotNull() {
            addCriterion("station_id is not null");
            return (Criteria) this;
        }

        public Criteria andStationIdEqualTo(Integer value) {
            addCriterion("station_id =", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotEqualTo(Integer value) {
            addCriterion("station_id <>", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdGreaterThan(Integer value) {
            addCriterion("station_id >", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("station_id >=", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLessThan(Integer value) {
            addCriterion("station_id <", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLessThanOrEqualTo(Integer value) {
            addCriterion("station_id <=", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdIn(List<Integer> values) {
            addCriterion("station_id in", values, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotIn(List<Integer> values) {
            addCriterion("station_id not in", values, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdBetween(Integer value1, Integer value2) {
            addCriterion("station_id between", value1, value2, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("station_id not between", value1, value2, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationNanmeIsNull() {
            addCriterion("station_nanme is null");
            return (Criteria) this;
        }

        public Criteria andStationNanmeIsNotNull() {
            addCriterion("station_nanme is not null");
            return (Criteria) this;
        }

        public Criteria andStationNanmeEqualTo(String value) {
            addCriterion("station_nanme =", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeNotEqualTo(String value) {
            addCriterion("station_nanme <>", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeGreaterThan(String value) {
            addCriterion("station_nanme >", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeGreaterThanOrEqualTo(String value) {
            addCriterion("station_nanme >=", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeLessThan(String value) {
            addCriterion("station_nanme <", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeLessThanOrEqualTo(String value) {
            addCriterion("station_nanme <=", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeLike(String value) {
            addCriterion("station_nanme like", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeNotLike(String value) {
            addCriterion("station_nanme not like", value, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeIn(List<String> values) {
            addCriterion("station_nanme in", values, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeNotIn(List<String> values) {
            addCriterion("station_nanme not in", values, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeBetween(String value1, String value2) {
            addCriterion("station_nanme between", value1, value2, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andStationNanmeNotBetween(String value1, String value2) {
            addCriterion("station_nanme not between", value1, value2, "stationNanme");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table station_oil_price
     *
     * @mbg.generated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table station_oil_price
     *
     * @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);
        }
    }
}