|
|
@ -4,46 +4,58 @@ import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
public class CmsTopicCategoryExample {
|
|
|
|
public class CmsTopicCategoryExample {
|
|
|
|
|
|
|
|
// 定义一个用于排序的子句
|
|
|
|
protected String orderByClause;
|
|
|
|
protected String orderByClause;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义一个布尔值,用于指示查询结果是否去重
|
|
|
|
protected boolean distinct;
|
|
|
|
protected boolean distinct;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义一个列表,用于存储查询条件(Criteria)
|
|
|
|
protected List<Criteria> oredCriteria;
|
|
|
|
protected List<Criteria> oredCriteria;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,初始化oredCriteria为一个新的ArrayList
|
|
|
|
public CmsTopicCategoryExample() {
|
|
|
|
public CmsTopicCategoryExample() {
|
|
|
|
oredCriteria = new ArrayList<>();
|
|
|
|
oredCriteria = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 设置排序子句的方法
|
|
|
|
public void setOrderByClause(String orderByClause) {
|
|
|
|
public void setOrderByClause(String orderByClause) {
|
|
|
|
this.orderByClause = orderByClause;
|
|
|
|
this.orderByClause = orderByClause;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取排序子句的方法
|
|
|
|
public String getOrderByClause() {
|
|
|
|
public String getOrderByClause() {
|
|
|
|
return orderByClause;
|
|
|
|
return orderByClause;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 设置是否去重的方法
|
|
|
|
public void setDistinct(boolean distinct) {
|
|
|
|
public void setDistinct(boolean distinct) {
|
|
|
|
this.distinct = distinct;
|
|
|
|
this.distinct = distinct;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取是否去重的方法
|
|
|
|
public boolean isDistinct() {
|
|
|
|
public boolean isDistinct() {
|
|
|
|
return distinct;
|
|
|
|
return distinct;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取查询条件列表的方法
|
|
|
|
public List<Criteria> getOredCriteria() {
|
|
|
|
public List<Criteria> getOredCriteria() {
|
|
|
|
return oredCriteria;
|
|
|
|
return oredCriteria;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 添加一个查询条件到oredCriteria列表中的方法
|
|
|
|
public void or(Criteria criteria) {
|
|
|
|
public void or(Criteria criteria) {
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 创建一个新的Criteria对象并添加到oredCriteria列表中的方法
|
|
|
|
public Criteria or() {
|
|
|
|
public Criteria or() {
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
return criteria;
|
|
|
|
return criteria;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 创建一个Criteria对象,如果oredCriteria列表为空则将其添加到列表中的方法
|
|
|
|
public Criteria createCriteria() {
|
|
|
|
public Criteria createCriteria() {
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
if (oredCriteria.size() == 0) {
|
|
|
|
if (oredCriteria.size() == 0) {
|
|
|
@ -52,37 +64,46 @@ public class CmsTopicCategoryExample {
|
|
|
|
return criteria;
|
|
|
|
return criteria;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 内部方法,用于创建一个新的Criteria对象
|
|
|
|
protected Criteria createCriteriaInternal() {
|
|
|
|
protected Criteria createCriteriaInternal() {
|
|
|
|
Criteria criteria = new Criteria();
|
|
|
|
Criteria criteria = new Criteria();
|
|
|
|
return criteria;
|
|
|
|
return criteria;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 清除所有查询条件和排序子句,并将distinct设置为false的方法
|
|
|
|
public void clear() {
|
|
|
|
public void clear() {
|
|
|
|
oredCriteria.clear();
|
|
|
|
oredCriteria.clear();
|
|
|
|
orderByClause = null;
|
|
|
|
orderByClause = null;
|
|
|
|
distinct = false;
|
|
|
|
distinct = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected abstract static class GeneratedCriteria {
|
|
|
|
protected abstract static class GeneratedCriteria {
|
|
|
|
|
|
|
|
// 定义一个列表来存储所有的查询条件
|
|
|
|
protected List<Criterion> criteria;
|
|
|
|
protected List<Criterion> criteria;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,初始化criteria列表
|
|
|
|
protected GeneratedCriteria() {
|
|
|
|
protected GeneratedCriteria() {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
criteria = new ArrayList<>();
|
|
|
|
criteria = new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 判断是否有有效的查询条件
|
|
|
|
public boolean isValid() {
|
|
|
|
public boolean isValid() {
|
|
|
|
return criteria.size() > 0;
|
|
|
|
return criteria.size() > 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取所有查询条件
|
|
|
|
public List<Criterion> getAllCriteria() {
|
|
|
|
public List<Criterion> getAllCriteria() {
|
|
|
|
return criteria;
|
|
|
|
return criteria;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取当前查询条件列表
|
|
|
|
public List<Criterion> getCriteria() {
|
|
|
|
public List<Criterion> getCriteria() {
|
|
|
|
return criteria;
|
|
|
|
return criteria;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 添加一个简单的查询条件(例如 "id is null")
|
|
|
|
protected void addCriterion(String condition) {
|
|
|
|
protected void addCriterion(String condition) {
|
|
|
|
if (condition == null) {
|
|
|
|
if (condition == null) {
|
|
|
|
throw new RuntimeException("Value for condition cannot be null");
|
|
|
|
throw new RuntimeException("Value for condition cannot be null");
|
|
|
@ -90,6 +111,7 @@ public class CmsTopicCategoryExample {
|
|
|
|
criteria.add(new Criterion(condition));
|
|
|
|
criteria.add(new Criterion(condition));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 添加一个带值的查询条件(例如 "id = 1")
|
|
|
|
protected void addCriterion(String condition, Object value, String property) {
|
|
|
|
protected void addCriterion(String condition, Object value, String property) {
|
|
|
|
if (value == null) {
|
|
|
|
if (value == null) {
|
|
|
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
|
|
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
|
|
@ -97,6 +119,7 @@ public class CmsTopicCategoryExample {
|
|
|
|
criteria.add(new Criterion(condition, value));
|
|
|
|
criteria.add(new Criterion(condition, value));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 添加一个范围查询条件(例如 "id between 1 and 10")
|
|
|
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
|
|
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
|
|
|
if (value1 == null || value2 == null) {
|
|
|
|
if (value1 == null || value2 == null) {
|
|
|
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
|
|
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
|
|
@ -104,6 +127,8 @@ public class CmsTopicCategoryExample {
|
|
|
|
criteria.add(new Criterion(condition, value1, value2));
|
|
|
|
criteria.add(new Criterion(condition, value1, value2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 以下方法用于生成具体的查询条件,并返回当前的Criteria对象以支持链式调用
|
|
|
|
|
|
|
|
|
|
|
|
public Criteria andIdIsNull() {
|
|
|
|
public Criteria andIdIsNull() {
|
|
|
|
addCriterion("id is null");
|
|
|
|
addCriterion("id is null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
@ -239,307 +264,362 @@ public class CmsTopicCategoryExample {
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否不为空
|
|
|
|
public Criteria andIconIsNotNull() {
|
|
|
|
public Criteria andIconIsNotNull() {
|
|
|
|
addCriterion("icon is not null");
|
|
|
|
addCriterion("icon is not null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否等于指定值
|
|
|
|
public Criteria andIconEqualTo(String value) {
|
|
|
|
public Criteria andIconEqualTo(String value) {
|
|
|
|
addCriterion("icon =", value, "icon");
|
|
|
|
addCriterion("icon =", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否不等于指定值
|
|
|
|
public Criteria andIconNotEqualTo(String value) {
|
|
|
|
public Criteria andIconNotEqualTo(String value) {
|
|
|
|
addCriterion("icon <>", value, "icon");
|
|
|
|
addCriterion("icon <>", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否大于指定值
|
|
|
|
public Criteria andIconGreaterThan(String value) {
|
|
|
|
public Criteria andIconGreaterThan(String value) {
|
|
|
|
addCriterion("icon >", value, "icon");
|
|
|
|
addCriterion("icon >", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否大于或等于指定值
|
|
|
|
public Criteria andIconGreaterThanOrEqualTo(String value) {
|
|
|
|
public Criteria andIconGreaterThanOrEqualTo(String value) {
|
|
|
|
addCriterion("icon >=", value, "icon");
|
|
|
|
addCriterion("icon >=", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否小于指定值
|
|
|
|
public Criteria andIconLessThan(String value) {
|
|
|
|
public Criteria andIconLessThan(String value) {
|
|
|
|
addCriterion("icon <", value, "icon");
|
|
|
|
addCriterion("icon <", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否小于或等于指定值
|
|
|
|
public Criteria andIconLessThanOrEqualTo(String value) {
|
|
|
|
public Criteria andIconLessThanOrEqualTo(String value) {
|
|
|
|
addCriterion("icon <=", value, "icon");
|
|
|
|
addCriterion("icon <=", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否匹配指定模式(使用LIKE)
|
|
|
|
public Criteria andIconLike(String value) {
|
|
|
|
public Criteria andIconLike(String value) {
|
|
|
|
addCriterion("icon like", value, "icon");
|
|
|
|
addCriterion("icon like", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否不匹配指定模式(使用NOT LIKE)
|
|
|
|
public Criteria andIconNotLike(String value) {
|
|
|
|
public Criteria andIconNotLike(String value) {
|
|
|
|
addCriterion("icon not like", value, "icon");
|
|
|
|
addCriterion("icon not like", value, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否在指定的值列表中
|
|
|
|
public Criteria andIconIn(List<String> values) {
|
|
|
|
public Criteria andIconIn(List<String> values) {
|
|
|
|
addCriterion("icon in", values, "icon");
|
|
|
|
addCriterion("icon in", values, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否不在指定的值列表中
|
|
|
|
public Criteria andIconNotIn(List<String> values) {
|
|
|
|
public Criteria andIconNotIn(List<String> values) {
|
|
|
|
addCriterion("icon not in", values, "icon");
|
|
|
|
addCriterion("icon not in", values, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否在指定的范围内(between)
|
|
|
|
public Criteria andIconBetween(String value1, String value2) {
|
|
|
|
public Criteria andIconBetween(String value1, String value2) {
|
|
|
|
addCriterion("icon between", value1, value2, "icon");
|
|
|
|
addCriterion("icon between", value1, value2, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查icon字段是否不在指定的范围内(not between)
|
|
|
|
public Criteria andIconNotBetween(String value1, String value2) {
|
|
|
|
public Criteria andIconNotBetween(String value1, String value2) {
|
|
|
|
addCriterion("icon not between", value1, value2, "icon");
|
|
|
|
addCriterion("icon not between", value1, value2, "icon");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否为空
|
|
|
|
public Criteria andSubjectCountIsNull() {
|
|
|
|
public Criteria andSubjectCountIsNull() {
|
|
|
|
addCriterion("subject_count is null");
|
|
|
|
addCriterion("subject_count is null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否不为空
|
|
|
|
public Criteria andSubjectCountIsNotNull() {
|
|
|
|
public Criteria andSubjectCountIsNotNull() {
|
|
|
|
addCriterion("subject_count is not null");
|
|
|
|
addCriterion("subject_count is not null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否等于指定值
|
|
|
|
public Criteria andSubjectCountEqualTo(Integer value) {
|
|
|
|
public Criteria andSubjectCountEqualTo(Integer value) {
|
|
|
|
addCriterion("subject_count =", value, "subjectCount");
|
|
|
|
addCriterion("subject_count =", value, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否不等于指定值
|
|
|
|
public Criteria andSubjectCountNotEqualTo(Integer value) {
|
|
|
|
public Criteria andSubjectCountNotEqualTo(Integer value) {
|
|
|
|
addCriterion("subject_count <>", value, "subjectCount");
|
|
|
|
addCriterion("subject_count <>", value, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否大于指定值
|
|
|
|
public Criteria andSubjectCountGreaterThan(Integer value) {
|
|
|
|
public Criteria andSubjectCountGreaterThan(Integer value) {
|
|
|
|
addCriterion("subject_count >", value, "subjectCount");
|
|
|
|
addCriterion("subject_count >", value, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否大于或等于指定值
|
|
|
|
public Criteria andSubjectCountGreaterThanOrEqualTo(Integer value) {
|
|
|
|
public Criteria andSubjectCountGreaterThanOrEqualTo(Integer value) {
|
|
|
|
addCriterion("subject_count >=", value, "subjectCount");
|
|
|
|
addCriterion("subject_count >=", value, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否小于指定值
|
|
|
|
public Criteria andSubjectCountLessThan(Integer value) {
|
|
|
|
public Criteria andSubjectCountLessThan(Integer value) {
|
|
|
|
addCriterion("subject_count <", value, "subjectCount");
|
|
|
|
addCriterion("subject_count <", value, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否小于或等于指定值
|
|
|
|
public Criteria andSubjectCountLessThanOrEqualTo(Integer value) {
|
|
|
|
public Criteria andSubjectCountLessThanOrEqualTo(Integer value) {
|
|
|
|
addCriterion("subject_count <=", value, "subjectCount");
|
|
|
|
addCriterion("subject_count <=", value, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否在指定的值列表中
|
|
|
|
public Criteria andSubjectCountIn(List<Integer> values) {
|
|
|
|
public Criteria andSubjectCountIn(List<Integer> values) {
|
|
|
|
addCriterion("subject_count in", values, "subjectCount");
|
|
|
|
addCriterion("subject_count in", values, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否不在指定的值列表中
|
|
|
|
public Criteria andSubjectCountNotIn(List<Integer> values) {
|
|
|
|
public Criteria andSubjectCountNotIn(List<Integer> values) {
|
|
|
|
addCriterion("subject_count not in", values, "subjectCount");
|
|
|
|
addCriterion("subject_count not in", values, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否在指定的范围内(between)
|
|
|
|
public Criteria andSubjectCountBetween(Integer value1, Integer value2) {
|
|
|
|
public Criteria andSubjectCountBetween(Integer value1, Integer value2) {
|
|
|
|
addCriterion("subject_count between", value1, value2, "subjectCount");
|
|
|
|
addCriterion("subject_count between", value1, value2, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查subject_count字段是否不在指定的范围内(not between)
|
|
|
|
public Criteria andSubjectCountNotBetween(Integer value1, Integer value2) {
|
|
|
|
public Criteria andSubjectCountNotBetween(Integer value1, Integer value2) {
|
|
|
|
addCriterion("subject_count not between", value1, value2, "subjectCount");
|
|
|
|
addCriterion("subject_count not between", value1, value2, "subjectCount");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查show_status字段是否为空
|
|
|
|
public Criteria andShowStatusIsNull() {
|
|
|
|
public Criteria andShowStatusIsNull() {
|
|
|
|
addCriterion("show_status is null");
|
|
|
|
addCriterion("show_status is null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查show_status字段是否不为空
|
|
|
|
public Criteria andShowStatusIsNotNull() {
|
|
|
|
public Criteria andShowStatusIsNotNull() {
|
|
|
|
addCriterion("show_status is not null");
|
|
|
|
addCriterion("show_status is not null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查show_status字段是否等于指定值
|
|
|
|
public Criteria andShowStatusEqualTo(Integer value) {
|
|
|
|
public Criteria andShowStatusEqualTo(Integer value) {
|
|
|
|
addCriterion("show_status =", value, "showStatus");
|
|
|
|
addCriterion("show_status =", value, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查show_status字段是否不等于指定值
|
|
|
|
public Criteria andShowStatusNotEqualTo(Integer value) {
|
|
|
|
public Criteria andShowStatusNotEqualTo(Integer value) {
|
|
|
|
addCriterion("show_status <>", value, "showStatus");
|
|
|
|
addCriterion("show_status <>", value, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否大于指定值
|
|
|
|
public Criteria andShowStatusGreaterThan(Integer value) {
|
|
|
|
public Criteria andShowStatusGreaterThan(Integer value) {
|
|
|
|
addCriterion("show_status >", value, "showStatus");
|
|
|
|
addCriterion("show_status >", value, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否大于或等于指定值
|
|
|
|
public Criteria andShowStatusGreaterThanOrEqualTo(Integer value) {
|
|
|
|
public Criteria andShowStatusGreaterThanOrEqualTo(Integer value) {
|
|
|
|
addCriterion("show_status >=", value, "showStatus");
|
|
|
|
addCriterion("show_status >=", value, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否小于指定值
|
|
|
|
public Criteria andShowStatusLessThan(Integer value) {
|
|
|
|
public Criteria andShowStatusLessThan(Integer value) {
|
|
|
|
addCriterion("show_status <", value, "showStatus");
|
|
|
|
addCriterion("show_status <", value, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否小于或等于指定值
|
|
|
|
public Criteria andShowStatusLessThanOrEqualTo(Integer value) {
|
|
|
|
public Criteria andShowStatusLessThanOrEqualTo(Integer value) {
|
|
|
|
addCriterion("show_status <=", value, "showStatus");
|
|
|
|
addCriterion("show_status <=", value, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否在指定的值列表中
|
|
|
|
public Criteria andShowStatusIn(List<Integer> values) {
|
|
|
|
public Criteria andShowStatusIn(List<Integer> values) {
|
|
|
|
addCriterion("show_status in", values, "showStatus");
|
|
|
|
addCriterion("show_status in", values, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否不在指定的值列表中
|
|
|
|
public Criteria andShowStatusNotIn(List<Integer> values) {
|
|
|
|
public Criteria andShowStatusNotIn(List<Integer> values) {
|
|
|
|
addCriterion("show_status not in", values, "showStatus");
|
|
|
|
addCriterion("show_status not in", values, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否在指定的范围内(between)
|
|
|
|
public Criteria andShowStatusBetween(Integer value1, Integer value2) {
|
|
|
|
public Criteria andShowStatusBetween(Integer value1, Integer value2) {
|
|
|
|
addCriterion("show_status between", value1, value2, "showStatus");
|
|
|
|
addCriterion("show_status between", value1, value2, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否不在指定的范围内(not between)
|
|
|
|
public Criteria andShowStatusNotBetween(Integer value1, Integer value2) {
|
|
|
|
public Criteria andShowStatusNotBetween(Integer value1, Integer value2) {
|
|
|
|
addCriterion("show_status not between", value1, value2, "showStatus");
|
|
|
|
addCriterion("show_status not between", value1, value2, "showStatus");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否为空
|
|
|
|
public Criteria andSortIsNull() {
|
|
|
|
public Criteria andSortIsNull() {
|
|
|
|
addCriterion("sort is null");
|
|
|
|
addCriterion("sort is null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不为空
|
|
|
|
public Criteria andSortIsNotNull() {
|
|
|
|
public Criteria andSortIsNotNull() {
|
|
|
|
addCriterion("sort is not null");
|
|
|
|
addCriterion("sort is not null");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否等于指定值
|
|
|
|
public Criteria andSortEqualTo(Integer value) {
|
|
|
|
public Criteria andSortEqualTo(Integer value) {
|
|
|
|
addCriterion("sort =", value, "sort");
|
|
|
|
addCriterion("sort =", value, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不等于指定值
|
|
|
|
public Criteria andSortNotEqualTo(Integer value) {
|
|
|
|
public Criteria andSortNotEqualTo(Integer value) {
|
|
|
|
addCriterion("sort <>", value, "sort");
|
|
|
|
addCriterion("sort <>", value, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否大于指定值
|
|
|
|
public Criteria andSortGreaterThan(Integer value) {
|
|
|
|
public Criteria andSortGreaterThan(Integer value) {
|
|
|
|
addCriterion("sort >", value, "sort");
|
|
|
|
addCriterion("sort >", value, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否大于或等于指定值
|
|
|
|
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
|
|
|
|
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
|
|
|
|
addCriterion("sort >=", value, "sort");
|
|
|
|
addCriterion("sort >=", value, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否小于指定值
|
|
|
|
public Criteria andSortLessThan(Integer value) {
|
|
|
|
public Criteria andSortLessThan(Integer value) {
|
|
|
|
addCriterion("sort <", value, "sort");
|
|
|
|
addCriterion("sort <", value, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否小于或等于指定值
|
|
|
|
public Criteria andSortLessThanOrEqualTo(Integer value) {
|
|
|
|
public Criteria andSortLessThanOrEqualTo(Integer value) {
|
|
|
|
addCriterion("sort <=", value, "sort");
|
|
|
|
addCriterion("sort <=", value, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否在指定的值列表中
|
|
|
|
public Criteria andSortIn(List<Integer> values) {
|
|
|
|
public Criteria andSortIn(List<Integer> values) {
|
|
|
|
addCriterion("sort in", values, "sort");
|
|
|
|
addCriterion("sort in", values, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不在指定的值列表中
|
|
|
|
public Criteria andSortNotIn(List<Integer> values) {
|
|
|
|
public Criteria andSortNotIn(List<Integer> values) {
|
|
|
|
addCriterion("sort not in", values, "sort");
|
|
|
|
addCriterion("sort not in", values, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否在指定的范围内(between)
|
|
|
|
public Criteria andSortBetween(Integer value1, Integer value2) {
|
|
|
|
public Criteria andSortBetween(Integer value1, Integer value2) {
|
|
|
|
addCriterion("sort between", value1, value2, "sort");
|
|
|
|
addCriterion("sort between", value1, value2, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不在指定的范围内(not between)
|
|
|
|
public Criteria andSortNotBetween(Integer value1, Integer value2) {
|
|
|
|
public Criteria andSortNotBetween(Integer value1, Integer value2) {
|
|
|
|
addCriterion("sort not between", value1, value2, "sort");
|
|
|
|
addCriterion("sort not between", value1, value2, "sort");
|
|
|
|
return (Criteria) this;
|
|
|
|
return (Criteria) this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Criteria extends GeneratedCriteria {
|
|
|
|
public static class Criteria extends GeneratedCriteria {
|
|
|
|
|
|
|
|
// 构造函数,初始化Criteria对象
|
|
|
|
protected Criteria() {
|
|
|
|
protected Criteria() {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Criterion {
|
|
|
|
public static class Criterion {
|
|
|
|
private String condition;
|
|
|
|
private String condition; // 条件表达式
|
|
|
|
|
|
|
|
private Object value; // 条件值
|
|
|
|
private Object value;
|
|
|
|
private Object secondValue; // 第二个条件值(用于between查询)
|
|
|
|
|
|
|
|
private boolean noValue; // 是否没有值
|
|
|
|
private Object secondValue;
|
|
|
|
private boolean singleValue; // 是否为单一值
|
|
|
|
|
|
|
|
private boolean betweenValue; // 是否为区间值
|
|
|
|
private boolean noValue;
|
|
|
|
private boolean listValue; // 是否为列表值
|
|
|
|
|
|
|
|
private String typeHandler; // 类型处理器
|
|
|
|
private boolean singleValue;
|
|
|
|
|
|
|
|
|
|
|
|
// 获取条件表达式
|
|
|
|
private boolean betweenValue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean listValue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String typeHandler;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getCondition() {
|
|
|
|
public String getCondition() {
|
|
|
|
return condition;
|
|
|
|
return condition;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取条件值
|
|
|
|
public Object getValue() {
|
|
|
|
public Object getValue() {
|
|
|
|
return value;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取第二个条件值
|
|
|
|
public Object getSecondValue() {
|
|
|
|
public Object getSecondValue() {
|
|
|
|
return secondValue;
|
|
|
|
return secondValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 判断是否没有值
|
|
|
|
public boolean isNoValue() {
|
|
|
|
public boolean isNoValue() {
|
|
|
|
return noValue;
|
|
|
|
return noValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 判断是否为单一值
|
|
|
|
public boolean isSingleValue() {
|
|
|
|
public boolean isSingleValue() {
|
|
|
|
return singleValue;
|
|
|
|
return singleValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 判断是否为区间值
|
|
|
|
public boolean isBetweenValue() {
|
|
|
|
public boolean isBetweenValue() {
|
|
|
|
return betweenValue;
|
|
|
|
return betweenValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 判断是否为列表值
|
|
|
|
public boolean isListValue() {
|
|
|
|
public boolean isListValue() {
|
|
|
|
return listValue;
|
|
|
|
return listValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取类型处理器
|
|
|
|
public String getTypeHandler() {
|
|
|
|
public String getTypeHandler() {
|
|
|
|
return typeHandler;
|
|
|
|
return typeHandler;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,仅包含条件表达式
|
|
|
|
protected Criterion(String condition) {
|
|
|
|
protected Criterion(String condition) {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
this.condition = condition;
|
|
|
|
this.condition = condition;
|
|
|
@ -547,33 +627,38 @@ public class CmsTopicCategoryExample {
|
|
|
|
this.noValue = true;
|
|
|
|
this.noValue = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件表达式和值,以及可选的类型处理器
|
|
|
|
protected Criterion(String condition, Object value, String typeHandler) {
|
|
|
|
protected Criterion(String condition, Object value, String typeHandler) {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
this.condition = condition;
|
|
|
|
this.condition = condition;
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.typeHandler = typeHandler;
|
|
|
|
this.typeHandler = typeHandler;
|
|
|
|
if (value instanceof List<?>) {
|
|
|
|
if (value instanceof List<?>) {
|
|
|
|
this.listValue = true;
|
|
|
|
this.listValue = true; // 如果值为列表,则设置listValue为true
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.singleValue = true;
|
|
|
|
this.singleValue = true; // 否则设置为单一值
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件表达式和值,不包含类型处理器
|
|
|
|
protected Criterion(String condition, Object value) {
|
|
|
|
protected Criterion(String condition, Object value) {
|
|
|
|
this(condition, value, null);
|
|
|
|
this(condition, value, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件表达式、两个值和可选的类型处理器,用于between查询
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
this.condition = condition;
|
|
|
|
this.condition = condition;
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.secondValue = secondValue;
|
|
|
|
this.secondValue = secondValue;
|
|
|
|
this.typeHandler = typeHandler;
|
|
|
|
this.typeHandler = typeHandler;
|
|
|
|
this.betweenValue = true;
|
|
|
|
this.betweenValue = true; // 设置为区间值
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件表达式、两个值,不包含类型处理器,用于between查询
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue) {
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue) {
|
|
|
|
this(condition, value, secondValue, null);
|
|
|
|
this(condition, value, secondValue, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|