package com.mvc.entity;

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

public class TStkinDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TStkinDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

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

        public Criteria andDeatilIdIsNotNull() {
            addCriterion("DEATIL_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDeatilIdEqualTo(String value) {
            addCriterion("DEATIL_ID =", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdNotEqualTo(String value) {
            addCriterion("DEATIL_ID <>", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdGreaterThan(String value) {
            addCriterion("DEATIL_ID >", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdGreaterThanOrEqualTo(String value) {
            addCriterion("DEATIL_ID >=", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdLessThan(String value) {
            addCriterion("DEATIL_ID <", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdLessThanOrEqualTo(String value) {
            addCriterion("DEATIL_ID <=", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdLike(String value) {
            addCriterion("DEATIL_ID like", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdNotLike(String value) {
            addCriterion("DEATIL_ID not like", value, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdIn(List<String> values) {
            addCriterion("DEATIL_ID in", values, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdNotIn(List<String> values) {
            addCriterion("DEATIL_ID not in", values, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdBetween(String value1, String value2) {
            addCriterion("DEATIL_ID between", value1, value2, "deatilId");
            return (Criteria) this;
        }

        public Criteria andDeatilIdNotBetween(String value1, String value2) {
            addCriterion("DEATIL_ID not between", value1, value2, "deatilId");
            return (Criteria) this;
        }

        public Criteria andBillCodeIsNull() {
            addCriterion("BILL_CODE is null");
            return (Criteria) this;
        }

        public Criteria andBillCodeIsNotNull() {
            addCriterion("BILL_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andBillCodeEqualTo(String value) {
            addCriterion("BILL_CODE =", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeNotEqualTo(String value) {
            addCriterion("BILL_CODE <>", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeGreaterThan(String value) {
            addCriterion("BILL_CODE >", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeGreaterThanOrEqualTo(String value) {
            addCriterion("BILL_CODE >=", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeLessThan(String value) {
            addCriterion("BILL_CODE <", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeLessThanOrEqualTo(String value) {
            addCriterion("BILL_CODE <=", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeLike(String value) {
            addCriterion("BILL_CODE like", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeNotLike(String value) {
            addCriterion("BILL_CODE not like", value, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeIn(List<String> values) {
            addCriterion("BILL_CODE in", values, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeNotIn(List<String> values) {
            addCriterion("BILL_CODE not in", values, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeBetween(String value1, String value2) {
            addCriterion("BILL_CODE between", value1, value2, "billCode");
            return (Criteria) this;
        }

        public Criteria andBillCodeNotBetween(String value1, String value2) {
            addCriterion("BILL_CODE not between", value1, value2, "billCode");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIsNull() {
            addCriterion("DEVICE_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIsNotNull() {
            addCriterion("DEVICE_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeEqualTo(String value) {
            addCriterion("DEVICE_TYPE =", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotEqualTo(String value) {
            addCriterion("DEVICE_TYPE <>", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeGreaterThan(String value) {
            addCriterion("DEVICE_TYPE >", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeGreaterThanOrEqualTo(String value) {
            addCriterion("DEVICE_TYPE >=", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeLessThan(String value) {
            addCriterion("DEVICE_TYPE <", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeLessThanOrEqualTo(String value) {
            addCriterion("DEVICE_TYPE <=", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeLike(String value) {
            addCriterion("DEVICE_TYPE like", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotLike(String value) {
            addCriterion("DEVICE_TYPE not like", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIn(List<String> values) {
            addCriterion("DEVICE_TYPE in", values, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotIn(List<String> values) {
            addCriterion("DEVICE_TYPE not in", values, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeBetween(String value1, String value2) {
            addCriterion("DEVICE_TYPE between", value1, value2, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotBetween(String value1, String value2) {
            addCriterion("DEVICE_TYPE not between", value1, value2, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceSnIsNull() {
            addCriterion("DEVICE_SN is null");
            return (Criteria) this;
        }

        public Criteria andDeviceSnIsNotNull() {
            addCriterion("DEVICE_SN is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceSnEqualTo(String value) {
            addCriterion("DEVICE_SN =", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnNotEqualTo(String value) {
            addCriterion("DEVICE_SN <>", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnGreaterThan(String value) {
            addCriterion("DEVICE_SN >", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnGreaterThanOrEqualTo(String value) {
            addCriterion("DEVICE_SN >=", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnLessThan(String value) {
            addCriterion("DEVICE_SN <", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnLessThanOrEqualTo(String value) {
            addCriterion("DEVICE_SN <=", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnLike(String value) {
            addCriterion("DEVICE_SN like", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnNotLike(String value) {
            addCriterion("DEVICE_SN not like", value, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnIn(List<String> values) {
            addCriterion("DEVICE_SN in", values, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnNotIn(List<String> values) {
            addCriterion("DEVICE_SN not in", values, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnBetween(String value1, String value2) {
            addCriterion("DEVICE_SN between", value1, value2, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andDeviceSnNotBetween(String value1, String value2) {
            addCriterion("DEVICE_SN not between", value1, value2, "deviceSn");
            return (Criteria) this;
        }

        public Criteria andStkroomIdIsNull() {
            addCriterion("STKROOM_ID is null");
            return (Criteria) this;
        }

        public Criteria andStkroomIdIsNotNull() {
            addCriterion("STKROOM_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStkroomIdEqualTo(String value) {
            addCriterion("STKROOM_ID =", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdNotEqualTo(String value) {
            addCriterion("STKROOM_ID <>", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdGreaterThan(String value) {
            addCriterion("STKROOM_ID >", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdGreaterThanOrEqualTo(String value) {
            addCriterion("STKROOM_ID >=", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdLessThan(String value) {
            addCriterion("STKROOM_ID <", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdLessThanOrEqualTo(String value) {
            addCriterion("STKROOM_ID <=", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdLike(String value) {
            addCriterion("STKROOM_ID like", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdNotLike(String value) {
            addCriterion("STKROOM_ID not like", value, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdIn(List<String> values) {
            addCriterion("STKROOM_ID in", values, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdNotIn(List<String> values) {
            addCriterion("STKROOM_ID not in", values, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdBetween(String value1, String value2) {
            addCriterion("STKROOM_ID between", value1, value2, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomIdNotBetween(String value1, String value2) {
            addCriterion("STKROOM_ID not between", value1, value2, "stkroomId");
            return (Criteria) this;
        }

        public Criteria andStkroomNameIsNull() {
            addCriterion("STKROOM_NAME is null");
            return (Criteria) this;
        }

        public Criteria andStkroomNameIsNotNull() {
            addCriterion("STKROOM_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andStkroomNameEqualTo(String value) {
            addCriterion("STKROOM_NAME =", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameNotEqualTo(String value) {
            addCriterion("STKROOM_NAME <>", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameGreaterThan(String value) {
            addCriterion("STKROOM_NAME >", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameGreaterThanOrEqualTo(String value) {
            addCriterion("STKROOM_NAME >=", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameLessThan(String value) {
            addCriterion("STKROOM_NAME <", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameLessThanOrEqualTo(String value) {
            addCriterion("STKROOM_NAME <=", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameLike(String value) {
            addCriterion("STKROOM_NAME like", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameNotLike(String value) {
            addCriterion("STKROOM_NAME not like", value, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameIn(List<String> values) {
            addCriterion("STKROOM_NAME in", values, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameNotIn(List<String> values) {
            addCriterion("STKROOM_NAME not in", values, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameBetween(String value1, String value2) {
            addCriterion("STKROOM_NAME between", value1, value2, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andStkroomNameNotBetween(String value1, String value2) {
            addCriterion("STKROOM_NAME not between", value1, value2, "stkroomName");
            return (Criteria) this;
        }

        public Criteria andDetailMemoIsNull() {
            addCriterion("DETAIL_MEMO is null");
            return (Criteria) this;
        }

        public Criteria andDetailMemoIsNotNull() {
            addCriterion("DETAIL_MEMO is not null");
            return (Criteria) this;
        }

        public Criteria andDetailMemoEqualTo(String value) {
            addCriterion("DETAIL_MEMO =", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoNotEqualTo(String value) {
            addCriterion("DETAIL_MEMO <>", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoGreaterThan(String value) {
            addCriterion("DETAIL_MEMO >", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoGreaterThanOrEqualTo(String value) {
            addCriterion("DETAIL_MEMO >=", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoLessThan(String value) {
            addCriterion("DETAIL_MEMO <", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoLessThanOrEqualTo(String value) {
            addCriterion("DETAIL_MEMO <=", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoLike(String value) {
            addCriterion("DETAIL_MEMO like", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoNotLike(String value) {
            addCriterion("DETAIL_MEMO not like", value, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoIn(List<String> values) {
            addCriterion("DETAIL_MEMO in", values, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoNotIn(List<String> values) {
            addCriterion("DETAIL_MEMO not in", values, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoBetween(String value1, String value2) {
            addCriterion("DETAIL_MEMO between", value1, value2, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andDetailMemoNotBetween(String value1, String value2) {
            addCriterion("DETAIL_MEMO not between", value1, value2, "detailMemo");
            return (Criteria) this;
        }

        public Criteria andBatCodeIsNull() {
            addCriterion("BAT_CODE is null");
            return (Criteria) this;
        }

        public Criteria andBatCodeIsNotNull() {
            addCriterion("BAT_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andBatCodeEqualTo(String value) {
            addCriterion("BAT_CODE =", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeNotEqualTo(String value) {
            addCriterion("BAT_CODE <>", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeGreaterThan(String value) {
            addCriterion("BAT_CODE >", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeGreaterThanOrEqualTo(String value) {
            addCriterion("BAT_CODE >=", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeLessThan(String value) {
            addCriterion("BAT_CODE <", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeLessThanOrEqualTo(String value) {
            addCriterion("BAT_CODE <=", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeLike(String value) {
            addCriterion("BAT_CODE like", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeNotLike(String value) {
            addCriterion("BAT_CODE not like", value, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeIn(List<String> values) {
            addCriterion("BAT_CODE in", values, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeNotIn(List<String> values) {
            addCriterion("BAT_CODE not in", values, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeBetween(String value1, String value2) {
            addCriterion("BAT_CODE between", value1, value2, "batCode");
            return (Criteria) this;
        }

        public Criteria andBatCodeNotBetween(String value1, String value2) {
            addCriterion("BAT_CODE not between", value1, value2, "batCode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    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);
        }
    }
}