package com.hai.entity;

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

public class SecMenuExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public SecMenuExample() {
        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;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    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(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

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

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

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

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

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

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

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

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

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

        public Criteria andMenuNameIsNull() {
            addCriterion("menu_name is null");
            return (Criteria) this;
        }

        public Criteria andMenuNameIsNotNull() {
            addCriterion("menu_name is not null");
            return (Criteria) this;
        }

        public Criteria andMenuNameEqualTo(String value) {
            addCriterion("menu_name =", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameNotEqualTo(String value) {
            addCriterion("menu_name <>", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameGreaterThan(String value) {
            addCriterion("menu_name >", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameGreaterThanOrEqualTo(String value) {
            addCriterion("menu_name >=", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameLessThan(String value) {
            addCriterion("menu_name <", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameLessThanOrEqualTo(String value) {
            addCriterion("menu_name <=", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameLike(String value) {
            addCriterion("menu_name like", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameNotLike(String value) {
            addCriterion("menu_name not like", value, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameIn(List<String> values) {
            addCriterion("menu_name in", values, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameNotIn(List<String> values) {
            addCriterion("menu_name not in", values, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameBetween(String value1, String value2) {
            addCriterion("menu_name between", value1, value2, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuNameNotBetween(String value1, String value2) {
            addCriterion("menu_name not between", value1, value2, "menuName");
            return (Criteria) this;
        }

        public Criteria andMenuTypeIsNull() {
            addCriterion("menu_type is null");
            return (Criteria) this;
        }

        public Criteria andMenuTypeIsNotNull() {
            addCriterion("menu_type is not null");
            return (Criteria) this;
        }

        public Criteria andMenuTypeEqualTo(Integer value) {
            addCriterion("menu_type =", value, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeNotEqualTo(Integer value) {
            addCriterion("menu_type <>", value, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeGreaterThan(Integer value) {
            addCriterion("menu_type >", value, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("menu_type >=", value, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeLessThan(Integer value) {
            addCriterion("menu_type <", value, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeLessThanOrEqualTo(Integer value) {
            addCriterion("menu_type <=", value, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeIn(List<Integer> values) {
            addCriterion("menu_type in", values, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeNotIn(List<Integer> values) {
            addCriterion("menu_type not in", values, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeBetween(Integer value1, Integer value2) {
            addCriterion("menu_type between", value1, value2, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("menu_type not between", value1, value2, "menuType");
            return (Criteria) this;
        }

        public Criteria andMenuUrlIsNull() {
            addCriterion("menu_url is null");
            return (Criteria) this;
        }

        public Criteria andMenuUrlIsNotNull() {
            addCriterion("menu_url is not null");
            return (Criteria) this;
        }

        public Criteria andMenuUrlEqualTo(String value) {
            addCriterion("menu_url =", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlNotEqualTo(String value) {
            addCriterion("menu_url <>", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlGreaterThan(String value) {
            addCriterion("menu_url >", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlGreaterThanOrEqualTo(String value) {
            addCriterion("menu_url >=", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlLessThan(String value) {
            addCriterion("menu_url <", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlLessThanOrEqualTo(String value) {
            addCriterion("menu_url <=", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlLike(String value) {
            addCriterion("menu_url like", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlNotLike(String value) {
            addCriterion("menu_url not like", value, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlIn(List<String> values) {
            addCriterion("menu_url in", values, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlNotIn(List<String> values) {
            addCriterion("menu_url not in", values, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlBetween(String value1, String value2) {
            addCriterion("menu_url between", value1, value2, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlNotBetween(String value1, String value2) {
            addCriterion("menu_url not between", value1, value2, "menuUrl");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgIsNull() {
            addCriterion("menu_url_img is null");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgIsNotNull() {
            addCriterion("menu_url_img is not null");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgEqualTo(String value) {
            addCriterion("menu_url_img =", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgNotEqualTo(String value) {
            addCriterion("menu_url_img <>", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgGreaterThan(String value) {
            addCriterion("menu_url_img >", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgGreaterThanOrEqualTo(String value) {
            addCriterion("menu_url_img >=", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgLessThan(String value) {
            addCriterion("menu_url_img <", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgLessThanOrEqualTo(String value) {
            addCriterion("menu_url_img <=", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgLike(String value) {
            addCriterion("menu_url_img like", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgNotLike(String value) {
            addCriterion("menu_url_img not like", value, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgIn(List<String> values) {
            addCriterion("menu_url_img in", values, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgNotIn(List<String> values) {
            addCriterion("menu_url_img not in", values, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgBetween(String value1, String value2) {
            addCriterion("menu_url_img between", value1, value2, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuUrlImgNotBetween(String value1, String value2) {
            addCriterion("menu_url_img not between", value1, value2, "menuUrlImg");
            return (Criteria) this;
        }

        public Criteria andMenuPSidIsNull() {
            addCriterion("menu_p_sid is null");
            return (Criteria) this;
        }

        public Criteria andMenuPSidIsNotNull() {
            addCriterion("menu_p_sid is not null");
            return (Criteria) this;
        }

        public Criteria andMenuPSidEqualTo(Long value) {
            addCriterion("menu_p_sid =", value, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidNotEqualTo(Long value) {
            addCriterion("menu_p_sid <>", value, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidGreaterThan(Long value) {
            addCriterion("menu_p_sid >", value, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidGreaterThanOrEqualTo(Long value) {
            addCriterion("menu_p_sid >=", value, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidLessThan(Long value) {
            addCriterion("menu_p_sid <", value, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidLessThanOrEqualTo(Long value) {
            addCriterion("menu_p_sid <=", value, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidIn(List<Long> values) {
            addCriterion("menu_p_sid in", values, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidNotIn(List<Long> values) {
            addCriterion("menu_p_sid not in", values, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidBetween(Long value1, Long value2) {
            addCriterion("menu_p_sid between", value1, value2, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuPSidNotBetween(Long value1, Long value2) {
            addCriterion("menu_p_sid not between", value1, value2, "menuPSid");
            return (Criteria) this;
        }

        public Criteria andMenuSortIsNull() {
            addCriterion("menu_sort is null");
            return (Criteria) this;
        }

        public Criteria andMenuSortIsNotNull() {
            addCriterion("menu_sort is not null");
            return (Criteria) this;
        }

        public Criteria andMenuSortEqualTo(Integer value) {
            addCriterion("menu_sort =", value, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortNotEqualTo(Integer value) {
            addCriterion("menu_sort <>", value, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortGreaterThan(Integer value) {
            addCriterion("menu_sort >", value, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("menu_sort >=", value, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortLessThan(Integer value) {
            addCriterion("menu_sort <", value, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortLessThanOrEqualTo(Integer value) {
            addCriterion("menu_sort <=", value, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortIn(List<Integer> values) {
            addCriterion("menu_sort in", values, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortNotIn(List<Integer> values) {
            addCriterion("menu_sort not in", values, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortBetween(Integer value1, Integer value2) {
            addCriterion("menu_sort between", value1, value2, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuSortNotBetween(Integer value1, Integer value2) {
            addCriterion("menu_sort not between", value1, value2, "menuSort");
            return (Criteria) this;
        }

        public Criteria andMenuDescIsNull() {
            addCriterion("menu_desc is null");
            return (Criteria) this;
        }

        public Criteria andMenuDescIsNotNull() {
            addCriterion("menu_desc is not null");
            return (Criteria) this;
        }

        public Criteria andMenuDescEqualTo(String value) {
            addCriterion("menu_desc =", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescNotEqualTo(String value) {
            addCriterion("menu_desc <>", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescGreaterThan(String value) {
            addCriterion("menu_desc >", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescGreaterThanOrEqualTo(String value) {
            addCriterion("menu_desc >=", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescLessThan(String value) {
            addCriterion("menu_desc <", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescLessThanOrEqualTo(String value) {
            addCriterion("menu_desc <=", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescLike(String value) {
            addCriterion("menu_desc like", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescNotLike(String value) {
            addCriterion("menu_desc not like", value, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescIn(List<String> values) {
            addCriterion("menu_desc in", values, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescNotIn(List<String> values) {
            addCriterion("menu_desc not in", values, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescBetween(String value1, String value2) {
            addCriterion("menu_desc between", value1, value2, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuDescNotBetween(String value1, String value2) {
            addCriterion("menu_desc not between", value1, value2, "menuDesc");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlIsNull() {
            addCriterion("menu_mobile_url is null");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlIsNotNull() {
            addCriterion("menu_mobile_url is not null");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlEqualTo(String value) {
            addCriterion("menu_mobile_url =", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlNotEqualTo(String value) {
            addCriterion("menu_mobile_url <>", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlGreaterThan(String value) {
            addCriterion("menu_mobile_url >", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlGreaterThanOrEqualTo(String value) {
            addCriterion("menu_mobile_url >=", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlLessThan(String value) {
            addCriterion("menu_mobile_url <", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlLessThanOrEqualTo(String value) {
            addCriterion("menu_mobile_url <=", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlLike(String value) {
            addCriterion("menu_mobile_url like", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlNotLike(String value) {
            addCriterion("menu_mobile_url not like", value, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlIn(List<String> values) {
            addCriterion("menu_mobile_url in", values, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlNotIn(List<String> values) {
            addCriterion("menu_mobile_url not in", values, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlBetween(String value1, String value2) {
            addCriterion("menu_mobile_url between", value1, value2, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andMenuMobileUrlNotBetween(String value1, String value2) {
            addCriterion("menu_mobile_url not between", value1, value2, "menuMobileUrl");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileIsNull() {
            addCriterion("show_on_mobile is null");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileIsNotNull() {
            addCriterion("show_on_mobile is not null");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileEqualTo(Integer value) {
            addCriterion("show_on_mobile =", value, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileNotEqualTo(Integer value) {
            addCriterion("show_on_mobile <>", value, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileGreaterThan(Integer value) {
            addCriterion("show_on_mobile >", value, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileGreaterThanOrEqualTo(Integer value) {
            addCriterion("show_on_mobile >=", value, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileLessThan(Integer value) {
            addCriterion("show_on_mobile <", value, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileLessThanOrEqualTo(Integer value) {
            addCriterion("show_on_mobile <=", value, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileIn(List<Integer> values) {
            addCriterion("show_on_mobile in", values, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileNotIn(List<Integer> values) {
            addCriterion("show_on_mobile not in", values, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileBetween(Integer value1, Integer value2) {
            addCriterion("show_on_mobile between", value1, value2, "showOnMobile");
            return (Criteria) this;
        }

        public Criteria andShowOnMobileNotBetween(Integer value1, Integer value2) {
            addCriterion("show_on_mobile not between", value1, value2, "showOnMobile");
            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);
        }
    }
}
