package com.ruoyi.system.domain;

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

public class SysGradeWeightExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public SysGradeWeightExample() {
        oredCriteria = new ArrayList<>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    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 sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    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 sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

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

        public Criteria andUseridIsNotNull() {
            addCriterion("userID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("userID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("userID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("userID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("userID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("userID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("userID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("userID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("userID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("userID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("userID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andReportWeightIsNull() {
            addCriterion("report_weight is null");
            return (Criteria) this;
        }

        public Criteria andReportWeightIsNotNull() {
            addCriterion("report_weight is not null");
            return (Criteria) this;
        }

        public Criteria andReportWeightEqualTo(Double value) {
            addCriterion("report_weight =", value, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightNotEqualTo(Double value) {
            addCriterion("report_weight <>", value, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightGreaterThan(Double value) {
            addCriterion("report_weight >", value, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightGreaterThanOrEqualTo(Double value) {
            addCriterion("report_weight >=", value, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightLessThan(Double value) {
            addCriterion("report_weight <", value, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightLessThanOrEqualTo(Double value) {
            addCriterion("report_weight <=", value, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightIn(List<Double> values) {
            addCriterion("report_weight in", values, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightNotIn(List<Double> values) {
            addCriterion("report_weight not in", values, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightBetween(Double value1, Double value2) {
            addCriterion("report_weight between", value1, value2, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andReportWeightNotBetween(Double value1, Double value2) {
            addCriterion("report_weight not between", value1, value2, "reportWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightIsNull() {
            addCriterion("operator_weight is null");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightIsNotNull() {
            addCriterion("operator_weight is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightEqualTo(Double value) {
            addCriterion("operator_weight =", value, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightNotEqualTo(Double value) {
            addCriterion("operator_weight <>", value, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightGreaterThan(Double value) {
            addCriterion("operator_weight >", value, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightGreaterThanOrEqualTo(Double value) {
            addCriterion("operator_weight >=", value, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightLessThan(Double value) {
            addCriterion("operator_weight <", value, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightLessThanOrEqualTo(Double value) {
            addCriterion("operator_weight <=", value, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightIn(List<Double> values) {
            addCriterion("operator_weight in", values, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightNotIn(List<Double> values) {
            addCriterion("operator_weight not in", values, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightBetween(Double value1, Double value2) {
            addCriterion("operator_weight between", value1, value2, "operatorWeight");
            return (Criteria) this;
        }

        public Criteria andOperatorWeightNotBetween(Double value1, Double value2) {
            addCriterion("operator_weight not between", value1, value2, "operatorWeight");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sys_weight
     *
     * @mbg.generated do_not_delete_during_merge Fri Aug 11 10:37:02 CST 2023
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sys_weight
     *
     * @mbg.generated Fri Aug 11 10:37:02 CST 2023
     */
    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);
        }
    }
}