package com.gyee.frame.model.auto;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Criteria andCodeIsNull() {
            addCriterion("CODE is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("CODE is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("CODE =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("CODE <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("CODE >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("CODE >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("CODE <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("CODE <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("CODE like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("CODE not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("CODE in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("CODE not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("CODE between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("CODE not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andFaultidIsNull() {
            addCriterion("FAULTID is null");
            return (Criteria) this;
        }

        public Criteria andFaultidIsNotNull() {
            addCriterion("FAULTID is not null");
            return (Criteria) this;
        }

        public Criteria andFaultidEqualTo(String value) {
            addCriterion("FAULTID =", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidNotEqualTo(String value) {
            addCriterion("FAULTID <>", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidGreaterThan(String value) {
            addCriterion("FAULTID >", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidGreaterThanOrEqualTo(String value) {
            addCriterion("FAULTID >=", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidLessThan(String value) {
            addCriterion("FAULTID <", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidLessThanOrEqualTo(String value) {
            addCriterion("FAULTID <=", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidLike(String value) {
            addCriterion("FAULTID like", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidNotLike(String value) {
            addCriterion("FAULTID not like", value, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidIn(List<String> values) {
            addCriterion("FAULTID in", values, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidNotIn(List<String> values) {
            addCriterion("FAULTID not in", values, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidBetween(String value1, String value2) {
            addCriterion("FAULTID between", value1, value2, "faultid");
            return (Criteria) this;
        }

        public Criteria andFaultidNotBetween(String value1, String value2) {
            addCriterion("FAULTID not between", value1, value2, "faultid");
            return (Criteria) this;
        }

        public Criteria andHalttypeIsNull() {
            addCriterion("HALTTYPE is null");
            return (Criteria) this;
        }

        public Criteria andHalttypeIsNotNull() {
            addCriterion("HALTTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andHalttypeEqualTo(String value) {
            addCriterion("HALTTYPE =", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeNotEqualTo(String value) {
            addCriterion("HALTTYPE <>", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeGreaterThan(String value) {
            addCriterion("HALTTYPE >", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeGreaterThanOrEqualTo(String value) {
            addCriterion("HALTTYPE >=", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeLessThan(String value) {
            addCriterion("HALTTYPE <", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeLessThanOrEqualTo(String value) {
            addCriterion("HALTTYPE <=", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeLike(String value) {
            addCriterion("HALTTYPE like", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeNotLike(String value) {
            addCriterion("HALTTYPE not like", value, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeIn(List<String> values) {
            addCriterion("HALTTYPE in", values, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeNotIn(List<String> values) {
            addCriterion("HALTTYPE not in", values, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeBetween(String value1, String value2) {
            addCriterion("HALTTYPE between", value1, value2, "halttype");
            return (Criteria) this;
        }

        public Criteria andHalttypeNotBetween(String value1, String value2) {
            addCriterion("HALTTYPE not between", value1, value2, "halttype");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("NAME is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("NAME is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("NAME =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("NAME <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("NAME >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("NAME >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("NAME <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("NAME <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("NAME like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("NAME not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("NAME in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("NAME not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("NAME between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("NAME not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNull() {
            addCriterion("CATEGORY is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNotNull() {
            addCriterion("CATEGORY is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryEqualTo(String value) {
            addCriterion("CATEGORY =", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotEqualTo(String value) {
            addCriterion("CATEGORY <>", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThan(String value) {
            addCriterion("CATEGORY >", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("CATEGORY >=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThan(String value) {
            addCriterion("CATEGORY <", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThanOrEqualTo(String value) {
            addCriterion("CATEGORY <=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLike(String value) {
            addCriterion("CATEGORY like", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotLike(String value) {
            addCriterion("CATEGORY not like", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryIn(List<String> values) {
            addCriterion("CATEGORY in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotIn(List<String> values) {
            addCriterion("CATEGORY not in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryBetween(String value1, String value2) {
            addCriterion("CATEGORY between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotBetween(String value1, String value2) {
            addCriterion("CATEGORY not between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andFaultlevelIsNull() {
            addCriterion("FAULTLEVEL is null");
            return (Criteria) this;
        }

        public Criteria andFaultlevelIsNotNull() {
            addCriterion("FAULTLEVEL is not null");
            return (Criteria) this;
        }

        public Criteria andFaultlevelEqualTo(Integer value) {
            addCriterion("FAULTLEVEL =", value, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelNotEqualTo(Integer value) {
            addCriterion("FAULTLEVEL <>", value, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelGreaterThan(Integer value) {
            addCriterion("FAULTLEVEL >", value, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("FAULTLEVEL >=", value, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelLessThan(Integer value) {
            addCriterion("FAULTLEVEL <", value, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelLessThanOrEqualTo(Integer value) {
            addCriterion("FAULTLEVEL <=", value, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelIn(List<Integer> values) {
            addCriterion("FAULTLEVEL in", values, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelNotIn(List<Integer> values) {
            addCriterion("FAULTLEVEL not in", values, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelBetween(Integer value1, Integer value2) {
            addCriterion("FAULTLEVEL between", value1, value2, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andFaultlevelNotBetween(Integer value1, Integer value2) {
            addCriterion("FAULTLEVEL not between", value1, value2, "faultlevel");
            return (Criteria) this;
        }

        public Criteria andCauseIsNull() {
            addCriterion("CAUSE is null");
            return (Criteria) this;
        }

        public Criteria andCauseIsNotNull() {
            addCriterion("CAUSE is not null");
            return (Criteria) this;
        }

        public Criteria andCauseEqualTo(String value) {
            addCriterion("CAUSE =", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseNotEqualTo(String value) {
            addCriterion("CAUSE <>", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseGreaterThan(String value) {
            addCriterion("CAUSE >", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseGreaterThanOrEqualTo(String value) {
            addCriterion("CAUSE >=", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseLessThan(String value) {
            addCriterion("CAUSE <", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseLessThanOrEqualTo(String value) {
            addCriterion("CAUSE <=", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseLike(String value) {
            addCriterion("CAUSE like", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseNotLike(String value) {
            addCriterion("CAUSE not like", value, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseIn(List<String> values) {
            addCriterion("CAUSE in", values, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseNotIn(List<String> values) {
            addCriterion("CAUSE not in", values, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseBetween(String value1, String value2) {
            addCriterion("CAUSE between", value1, value2, "cause");
            return (Criteria) this;
        }

        public Criteria andCauseNotBetween(String value1, String value2) {
            addCriterion("CAUSE not between", value1, value2, "cause");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureIsNull() {
            addCriterion("TREATMENTMEASURE is null");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureIsNotNull() {
            addCriterion("TREATMENTMEASURE is not null");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureEqualTo(String value) {
            addCriterion("TREATMENTMEASURE =", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureNotEqualTo(String value) {
            addCriterion("TREATMENTMEASURE <>", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureGreaterThan(String value) {
            addCriterion("TREATMENTMEASURE >", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureGreaterThanOrEqualTo(String value) {
            addCriterion("TREATMENTMEASURE >=", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureLessThan(String value) {
            addCriterion("TREATMENTMEASURE <", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureLessThanOrEqualTo(String value) {
            addCriterion("TREATMENTMEASURE <=", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureLike(String value) {
            addCriterion("TREATMENTMEASURE like", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureNotLike(String value) {
            addCriterion("TREATMENTMEASURE not like", value, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureIn(List<String> values) {
            addCriterion("TREATMENTMEASURE in", values, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureNotIn(List<String> values) {
            addCriterion("TREATMENTMEASURE not in", values, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureBetween(String value1, String value2) {
            addCriterion("TREATMENTMEASURE between", value1, value2, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andTreatmentmeasureNotBetween(String value1, String value2) {
            addCriterion("TREATMENTMEASURE not between", value1, value2, "treatmentmeasure");
            return (Criteria) this;
        }

        public Criteria andDevicemodelIsNull() {
            addCriterion("DEVICEMODEL is null");
            return (Criteria) this;
        }

        public Criteria andDevicemodelIsNotNull() {
            addCriterion("DEVICEMODEL is not null");
            return (Criteria) this;
        }

        public Criteria andDevicemodelEqualTo(String value) {
            addCriterion("DEVICEMODEL =", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelNotEqualTo(String value) {
            addCriterion("DEVICEMODEL <>", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelGreaterThan(String value) {
            addCriterion("DEVICEMODEL >", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelGreaterThanOrEqualTo(String value) {
            addCriterion("DEVICEMODEL >=", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelLessThan(String value) {
            addCriterion("DEVICEMODEL <", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelLessThanOrEqualTo(String value) {
            addCriterion("DEVICEMODEL <=", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelLike(String value) {
            addCriterion("DEVICEMODEL like", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelNotLike(String value) {
            addCriterion("DEVICEMODEL not like", value, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelIn(List<String> values) {
            addCriterion("DEVICEMODEL in", values, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelNotIn(List<String> values) {
            addCriterion("DEVICEMODEL not in", values, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelBetween(String value1, String value2) {
            addCriterion("DEVICEMODEL between", value1, value2, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicemodelNotBetween(String value1, String value2) {
            addCriterion("DEVICEMODEL not between", value1, value2, "devicemodel");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidIsNull() {
            addCriterion("DEVICETREEID is null");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidIsNotNull() {
            addCriterion("DEVICETREEID is not null");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidEqualTo(Integer value) {
            addCriterion("DEVICETREEID =", value, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidNotEqualTo(Integer value) {
            addCriterion("DEVICETREEID <>", value, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidGreaterThan(Integer value) {
            addCriterion("DEVICETREEID >", value, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEVICETREEID >=", value, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidLessThan(Integer value) {
            addCriterion("DEVICETREEID <", value, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidLessThanOrEqualTo(Integer value) {
            addCriterion("DEVICETREEID <=", value, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidIn(List<Integer> values) {
            addCriterion("DEVICETREEID in", values, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidNotIn(List<Integer> values) {
            addCriterion("DEVICETREEID not in", values, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidBetween(Integer value1, Integer value2) {
            addCriterion("DEVICETREEID between", value1, value2, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andDevicetreeidNotBetween(Integer value1, Integer value2) {
            addCriterion("DEVICETREEID not between", value1, value2, "devicetreeid");
            return (Criteria) this;
        }

        public Criteria andCreatetorIsNull() {
            addCriterion("CREATETOR is null");
            return (Criteria) this;
        }

        public Criteria andCreatetorIsNotNull() {
            addCriterion("CREATETOR is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetorEqualTo(String value) {
            addCriterion("CREATETOR =", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorNotEqualTo(String value) {
            addCriterion("CREATETOR <>", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorGreaterThan(String value) {
            addCriterion("CREATETOR >", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorGreaterThanOrEqualTo(String value) {
            addCriterion("CREATETOR >=", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorLessThan(String value) {
            addCriterion("CREATETOR <", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorLessThanOrEqualTo(String value) {
            addCriterion("CREATETOR <=", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorLike(String value) {
            addCriterion("CREATETOR like", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorNotLike(String value) {
            addCriterion("CREATETOR not like", value, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorIn(List<String> values) {
            addCriterion("CREATETOR in", values, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorNotIn(List<String> values) {
            addCriterion("CREATETOR not in", values, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorBetween(String value1, String value2) {
            addCriterion("CREATETOR between", value1, value2, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetorNotBetween(String value1, String value2) {
            addCriterion("CREATETOR not between", value1, value2, "createtor");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CREATETIME is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CREATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CREATETIME =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CREATETIME <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CREATETIME >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATETIME >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CREATETIME <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATETIME <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CREATETIME in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CREATETIME not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CREATETIME between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATETIME not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

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