Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / EventsManage / NewsQuery.java
package com.newfiber.api.pc.model.EventsManage;

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

public class NewsQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    protected String sort;

    protected String order;

    protected String str;

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = "%"+str+"%";
    }

    public NewsQuery() {
        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 setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

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

        public Criteria andSerialIsNotNull() {
            addCriterion("Serial is not null");
            return (Criteria) this;
        }

        public Criteria andSerialEqualTo(Long value) {
            addCriterion("Serial =", value, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialNotEqualTo(Long value) {
            addCriterion("Serial <>", value, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialGreaterThan(Long value) {
            addCriterion("Serial >", value, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialGreaterThanOrEqualTo(Long value) {
            addCriterion("Serial >=", value, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialLessThan(Long value) {
            addCriterion("Serial <", value, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialLessThanOrEqualTo(Long value) {
            addCriterion("Serial <=", value, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialIn(List<Long> values) {
            addCriterion("Serial in", values, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialNotIn(List<Long> values) {
            addCriterion("Serial not in", values, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialBetween(Long value1, Long value2) {
            addCriterion("Serial between", value1, value2, "serial");
            return (Criteria) this;
        }

        public Criteria andSerialNotBetween(Long value1, Long value2) {
            addCriterion("Serial not between", value1, value2, "serial");
            return (Criteria) this;
        }

        public Criteria andNewsNoIsNull() {
            addCriterion("News_NO is null");
            return (Criteria) this;
        }

        public Criteria andNewsNoIsNotNull() {
            addCriterion("News_NO is not null");
            return (Criteria) this;
        }

        public Criteria andNewsNoEqualTo(String value) {
            addCriterion("News_NO =", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoNotEqualTo(String value) {
            addCriterion("News_NO <>", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoGreaterThan(String value) {
            addCriterion("News_NO >", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoGreaterThanOrEqualTo(String value) {
            addCriterion("News_NO >=", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoLessThan(String value) {
            addCriterion("News_NO <", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoLessThanOrEqualTo(String value) {
            addCriterion("News_NO <=", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoLike(String value) {
            addCriterion("News_NO like", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoNotLike(String value) {
            addCriterion("News_NO not like", value, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoIn(List<String> values) {
            addCriterion("News_NO in", values, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoNotIn(List<String> values) {
            addCriterion("News_NO not in", values, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoBetween(String value1, String value2) {
            addCriterion("News_NO between", value1, value2, "newsNo");
            return (Criteria) this;
        }

        public Criteria andNewsNoNotBetween(String value1, String value2) {
            addCriterion("News_NO not between", value1, value2, "newsNo");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("Title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("Title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("Title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("Title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("Title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("Title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("Title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("Title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("Title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("Title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("Title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("Title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("Title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("Title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleImgIsNull() {
            addCriterion("Title_Img is null");
            return (Criteria) this;
        }

        public Criteria andTitleImgIsNotNull() {
            addCriterion("Title_Img is not null");
            return (Criteria) this;
        }

        public Criteria andTitleImgEqualTo(String value) {
            addCriterion("Title_Img =", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgNotEqualTo(String value) {
            addCriterion("Title_Img <>", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgGreaterThan(String value) {
            addCriterion("Title_Img >", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgGreaterThanOrEqualTo(String value) {
            addCriterion("Title_Img >=", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgLessThan(String value) {
            addCriterion("Title_Img <", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgLessThanOrEqualTo(String value) {
            addCriterion("Title_Img <=", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgLike(String value) {
            addCriterion("Title_Img like", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgNotLike(String value) {
            addCriterion("Title_Img not like", value, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgIn(List<String> values) {
            addCriterion("Title_Img in", values, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgNotIn(List<String> values) {
            addCriterion("Title_Img not in", values, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgBetween(String value1, String value2) {
            addCriterion("Title_Img between", value1, value2, "titleImg");
            return (Criteria) this;
        }

        public Criteria andTitleImgNotBetween(String value1, String value2) {
            addCriterion("Title_Img not between", value1, value2, "titleImg");
            return (Criteria) this;
        }

        public Criteria andPublishUseridIsNull() {
            addCriterion("Publish_UserID is null");
            return (Criteria) this;
        }

        public Criteria andPublishUseridIsNotNull() {
            addCriterion("Publish_UserID is not null");
            return (Criteria) this;
        }

        public Criteria andPublishUseridEqualTo(String value) {
            addCriterion("Publish_UserID =", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridNotEqualTo(String value) {
            addCriterion("Publish_UserID <>", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridGreaterThan(String value) {
            addCriterion("Publish_UserID >", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridGreaterThanOrEqualTo(String value) {
            addCriterion("Publish_UserID >=", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridLessThan(String value) {
            addCriterion("Publish_UserID <", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridLessThanOrEqualTo(String value) {
            addCriterion("Publish_UserID <=", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridLike(String value) {
            addCriterion("Publish_UserID like", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridNotLike(String value) {
            addCriterion("Publish_UserID not like", value, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridIn(List<String> values) {
            addCriterion("Publish_UserID in", values, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridNotIn(List<String> values) {
            addCriterion("Publish_UserID not in", values, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridBetween(String value1, String value2) {
            addCriterion("Publish_UserID between", value1, value2, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUseridNotBetween(String value1, String value2) {
            addCriterion("Publish_UserID not between", value1, value2, "publishUserid");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameIsNull() {
            addCriterion("Publish_UserName is null");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameIsNotNull() {
            addCriterion("Publish_UserName is not null");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameEqualTo(String value) {
            addCriterion("Publish_UserName =", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameNotEqualTo(String value) {
            addCriterion("Publish_UserName <>", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameGreaterThan(String value) {
            addCriterion("Publish_UserName >", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("Publish_UserName >=", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameLessThan(String value) {
            addCriterion("Publish_UserName <", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameLessThanOrEqualTo(String value) {
            addCriterion("Publish_UserName <=", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameLike(String value) {
            addCriterion("Publish_UserName like", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameNotLike(String value) {
            addCriterion("Publish_UserName not like", value, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameIn(List<String> values) {
            addCriterion("Publish_UserName in", values, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameNotIn(List<String> values) {
            addCriterion("Publish_UserName not in", values, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameBetween(String value1, String value2) {
            addCriterion("Publish_UserName between", value1, value2, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishUsernameNotBetween(String value1, String value2) {
            addCriterion("Publish_UserName not between", value1, value2, "publishUsername");
            return (Criteria) this;
        }

        public Criteria andPublishTimeIsNull() {
            addCriterion("Publish_Time is null");
            return (Criteria) this;
        }

        public Criteria andPublishTimeIsNotNull() {
            addCriterion("Publish_Time is not null");
            return (Criteria) this;
        }

        public Criteria andPublishTimeEqualTo(Date value) {
            addCriterion("Publish_Time =", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeNotEqualTo(Date value) {
            addCriterion("Publish_Time <>", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeGreaterThan(Date value) {
            addCriterion("Publish_Time >", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Publish_Time >=", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeLessThan(Date value) {
            addCriterion("Publish_Time <", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeLessThanOrEqualTo(Date value) {
            addCriterion("Publish_Time <=", value, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeIn(List<Date> values) {
            addCriterion("Publish_Time in", values, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeNotIn(List<Date> values) {
            addCriterion("Publish_Time not in", values, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeBetween(Date value1, Date value2) {
            addCriterion("Publish_Time between", value1, value2, "publishTime");
            return (Criteria) this;
        }

        public Criteria andPublishTimeNotBetween(Date value1, Date value2) {
            addCriterion("Publish_Time not between", value1, value2, "publishTime");
            return (Criteria) this;
        }

        public Criteria andAreaIsNull() {
            addCriterion("Area is null");
            return (Criteria) this;
        }

        public Criteria andAreaIsNotNull() {
            addCriterion("Area is not null");
            return (Criteria) this;
        }

        public Criteria andAreaEqualTo(String value) {
            addCriterion("Area =", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotEqualTo(String value) {
            addCriterion("Area <>", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaGreaterThan(String value) {
            addCriterion("Area >", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaGreaterThanOrEqualTo(String value) {
            addCriterion("Area >=", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaLessThan(String value) {
            addCriterion("Area <", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaLessThanOrEqualTo(String value) {
            addCriterion("Area <=", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaLike(String value) {
            addCriterion("Area like", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotLike(String value) {
            addCriterion("Area not like", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaIn(List<String> values) {
            addCriterion("Area in", values, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotIn(List<String> values) {
            addCriterion("Area not in", values, "area");
            return (Criteria) this;
        }

        public Criteria andAreaBetween(String value1, String value2) {
            addCriterion("Area between", value1, value2, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotBetween(String value1, String value2) {
            addCriterion("Area not between", value1, value2, "area");
            return (Criteria) this;
        }

        public Criteria andAbstractsIsNull() {
            addCriterion("Abstracts is null");
            return (Criteria) this;
        }

        public Criteria andAbstractsIsNotNull() {
            addCriterion("Abstracts is not null");
            return (Criteria) this;
        }

        public Criteria andAbstractsEqualTo(String value) {
            addCriterion("Abstracts =", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsNotEqualTo(String value) {
            addCriterion("Abstracts <>", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsGreaterThan(String value) {
            addCriterion("Abstracts >", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsGreaterThanOrEqualTo(String value) {
            addCriterion("Abstracts >=", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsLessThan(String value) {
            addCriterion("Abstracts <", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsLessThanOrEqualTo(String value) {
            addCriterion("Abstracts <=", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsLike(String value) {
            addCriterion("Abstracts like", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsNotLike(String value) {
            addCriterion("Abstracts not like", value, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsIn(List<String> values) {
            addCriterion("Abstracts in", values, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsNotIn(List<String> values) {
            addCriterion("Abstracts not in", values, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsBetween(String value1, String value2) {
            addCriterion("Abstracts between", value1, value2, "abstracts");
            return (Criteria) this;
        }

        public Criteria andAbstractsNotBetween(String value1, String value2) {
            addCriterion("Abstracts not between", value1, value2, "abstracts");
            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);
        }
    }
}