package com.tax.file.model;

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

public class LackDateFileExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public LackDateFileExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 CST 2020
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 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 lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 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 lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 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 lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 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 lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 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));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        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 andTaxnoIsNull() {
            addCriterion("taxno is null");
            return (Criteria) this;
        }

        public Criteria andTaxnoIsNotNull() {
            addCriterion("taxno is not null");
            return (Criteria) this;
        }

        public Criteria andTaxnoEqualTo(String value) {
            addCriterion("taxno =", value, "taxno");
            return (Criteria) this;
        }

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

        public Criteria andTaxnoGreaterThan(String value) {
            addCriterion("taxno >", value, "taxno");
            return (Criteria) this;
        }

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

        public Criteria andTaxnoLessThan(String value) {
            addCriterion("taxno <", value, "taxno");
            return (Criteria) this;
        }

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

        public Criteria andTaxnoLike(String value) {
            addCriterion("taxno like", value, "taxno");
            return (Criteria) this;
        }

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

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

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

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

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

        public Criteria andInvDateStartIsNull() {
            addCriterion("inv_date_start is null");
            return (Criteria) this;
        }

        public Criteria andInvDateStartIsNotNull() {
            addCriterion("inv_date_start is not null");
            return (Criteria) this;
        }

        public Criteria andInvDateStartEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_start =", value, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartNotEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_start <>", value, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartGreaterThan(Date value) {
            addCriterionForJDBCDate("inv_date_start >", value, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_start >=", value, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartLessThan(Date value) {
            addCriterionForJDBCDate("inv_date_start <", value, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_start <=", value, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartIn(List<Date> values) {
            addCriterionForJDBCDate("inv_date_start in", values, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartNotIn(List<Date> values) {
            addCriterionForJDBCDate("inv_date_start not in", values, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("inv_date_start between", value1, value2, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateStartNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("inv_date_start not between", value1, value2, "invDateStart");
            return (Criteria) this;
        }

        public Criteria andInvDateEndIsNull() {
            addCriterion("inv_date_end is null");
            return (Criteria) this;
        }

        public Criteria andInvDateEndIsNotNull() {
            addCriterion("inv_date_end is not null");
            return (Criteria) this;
        }

        public Criteria andInvDateEndEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_end =", value, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndNotEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_end <>", value, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndGreaterThan(Date value) {
            addCriterionForJDBCDate("inv_date_end >", value, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_end >=", value, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndLessThan(Date value) {
            addCriterionForJDBCDate("inv_date_end <", value, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("inv_date_end <=", value, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndIn(List<Date> values) {
            addCriterionForJDBCDate("inv_date_end in", values, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndNotIn(List<Date> values) {
            addCriterionForJDBCDate("inv_date_end not in", values, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("inv_date_end between", value1, value2, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andInvDateEndNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("inv_date_end not between", value1, value2, "invDateEnd");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andApplyStatusIsNull() {
            addCriterion("apply_status is null");
            return (Criteria) this;
        }

        public Criteria andApplyStatusIsNotNull() {
            addCriterion("apply_status is not null");
            return (Criteria) this;
        }

        public Criteria andApplyStatusEqualTo(String value) {
            addCriterion("apply_status =", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusNotEqualTo(String value) {
            addCriterion("apply_status <>", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusGreaterThan(String value) {
            addCriterion("apply_status >", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusGreaterThanOrEqualTo(String value) {
            addCriterion("apply_status >=", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusLessThan(String value) {
            addCriterion("apply_status <", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusLessThanOrEqualTo(String value) {
            addCriterion("apply_status <=", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusLike(String value) {
            addCriterion("apply_status like", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusNotLike(String value) {
            addCriterion("apply_status not like", value, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusIn(List<String> values) {
            addCriterion("apply_status in", values, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusNotIn(List<String> values) {
            addCriterion("apply_status not in", values, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusBetween(String value1, String value2) {
            addCriterion("apply_status between", value1, value2, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andApplyStatusNotBetween(String value1, String value2) {
            addCriterion("apply_status not between", value1, value2, "applyStatus");
            return (Criteria) this;
        }

        public Criteria andInvSpecIsNull() {
            addCriterion("inv_spec is null");
            return (Criteria) this;
        }

        public Criteria andInvSpecIsNotNull() {
            addCriterion("inv_spec is not null");
            return (Criteria) this;
        }

        public Criteria andInvSpecEqualTo(String value) {
            addCriterion("inv_spec =", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecNotEqualTo(String value) {
            addCriterion("inv_spec <>", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecGreaterThan(String value) {
            addCriterion("inv_spec >", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecGreaterThanOrEqualTo(String value) {
            addCriterion("inv_spec >=", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecLessThan(String value) {
            addCriterion("inv_spec <", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecLessThanOrEqualTo(String value) {
            addCriterion("inv_spec <=", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecLike(String value) {
            addCriterion("inv_spec like", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecNotLike(String value) {
            addCriterion("inv_spec not like", value, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecIn(List<String> values) {
            addCriterion("inv_spec in", values, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecNotIn(List<String> values) {
            addCriterion("inv_spec not in", values, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecBetween(String value1, String value2) {
            addCriterion("inv_spec between", value1, value2, "invSpec");
            return (Criteria) this;
        }

        public Criteria andInvSpecNotBetween(String value1, String value2) {
            addCriterion("inv_spec not between", value1, value2, "invSpec");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table lack_date_file
     *
     * @mbggenerated do_not_delete_during_merge Wed Mar 04 09:47:53 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 lack_date_file
     *
     * @mbggenerated Wed Mar 04 09:47:53 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);
        }
    }
}