|
|
|
@ -0,0 +1,724 @@
|
|
|
|
|
package com.macro.mall.model;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public class CmsHelpCategoryExample {
|
|
|
|
|
// 定义排序子句
|
|
|
|
|
protected String orderByClause;
|
|
|
|
|
|
|
|
|
|
// 是否使用 DISTINCT 关键字
|
|
|
|
|
protected boolean distinct;
|
|
|
|
|
|
|
|
|
|
// 存储查询条件的列表
|
|
|
|
|
protected List<Criteria> oredCriteria;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 构造函数,初始化查询条件列表
|
|
|
|
|
*/
|
|
|
|
|
public CmsHelpCategoryExample() {
|
|
|
|
|
oredCriteria = new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设置排序子句
|
|
|
|
|
* @param orderByClause 排序子句字符串
|
|
|
|
|
*/
|
|
|
|
|
public void setOrderByClause(String orderByClause) {
|
|
|
|
|
this.orderByClause = orderByClause;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取排序子句
|
|
|
|
|
* @return 排序子句字符串
|
|
|
|
|
*/
|
|
|
|
|
public String getOrderByClause() {
|
|
|
|
|
return orderByClause;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设置是否使用 DISTINCT 关键字
|
|
|
|
|
* @param distinct true 表示使用 DISTINCT 关键字,false 表示不使用
|
|
|
|
|
*/
|
|
|
|
|
public void setDistinct(boolean distinct) {
|
|
|
|
|
this.distinct = distinct;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 判断是否使用 DISTINCT 关键字
|
|
|
|
|
* @return 如果使用 DISTINCT 关键字返回 true,否则返回 false
|
|
|
|
|
*/
|
|
|
|
|
public boolean isDistinct() {
|
|
|
|
|
return distinct;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取查询条件列表
|
|
|
|
|
* @return 查询条件列表
|
|
|
|
|
*/
|
|
|
|
|
public List<Criteria> getOredCriteria() {
|
|
|
|
|
return oredCriteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 添加一个查询条件到查询条件列表中
|
|
|
|
|
* @param criteria 要添加的查询条件
|
|
|
|
|
*/
|
|
|
|
|
public void or(Criteria criteria) {
|
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Criteria or() {
|
|
|
|
|
// 创建一个新的Criteria对象
|
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
|
// 将新的Criteria对象添加到oredCriteria列表中
|
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
|
// 返回新创建的Criteria对象
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria createCriteria() {
|
|
|
|
|
// 创建一个新的Criteria对象
|
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
|
// 如果oredCriteria列表为空,则将新的Criteria对象添加到列表中
|
|
|
|
|
if (oredCriteria.size() == 0) {
|
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
|
}
|
|
|
|
|
// 返回新创建的Criteria对象
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected Criteria createCriteriaInternal() {
|
|
|
|
|
// 创建并返回一个新的Criteria对象
|
|
|
|
|
Criteria criteria = new Criteria();
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void clear() {
|
|
|
|
|
// 清空oredCriteria列表
|
|
|
|
|
oredCriteria.clear();
|
|
|
|
|
// 将orderByClause设置为null
|
|
|
|
|
orderByClause = null;
|
|
|
|
|
// 将distinct标志设置为false
|
|
|
|
|
distinct = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected abstract static class GeneratedCriteria {
|
|
|
|
|
// 存储Criterion对象的列表
|
|
|
|
|
protected List<Criterion> criteria; // 存储查询条件的列表
|
|
|
|
|
|
|
|
|
|
protected GeneratedCriteria() {
|
|
|
|
|
// 调用父类的构造函数
|
|
|
|
|
super();
|
|
|
|
|
// 初始化criteria列表
|
|
|
|
|
criteria = new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isValid() {
|
|
|
|
|
// 检查criteria列表是否包含至少一个Criterion对象
|
|
|
|
|
return criteria.size() > 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Criterion> getAllCriteria() {
|
|
|
|
|
// 返回所有Criterion对象的列表
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Criterion> getCriteria() {
|
|
|
|
|
// 返回所有Criterion对象的列表
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void addCriterion(String condition) {
|
|
|
|
|
// 如果条件为空,抛出运行时异常
|
|
|
|
|
if (condition == null) {
|
|
|
|
|
throw new RuntimeException("Value for condition cannot be null");
|
|
|
|
|
}
|
|
|
|
|
// 将新的Criterion对象添加到criteria列表中
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
// 将新的Criterion对象(带值)添加到criteria列表中
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
// 将新的Criterion对象(带两个值)添加到criteria列表中
|
|
|
|
|
criteria.add(new Criterion(condition, value1, value2));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdIsNull() {
|
|
|
|
|
// 添加条件“id is null”到criteria列表中
|
|
|
|
|
addCriterion("id is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdIsNotNull() {
|
|
|
|
|
// 添加条件“id is not null”到criteria列表中
|
|
|
|
|
addCriterion("id is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdEqualTo(Long value) {
|
|
|
|
|
// 添加条件“id = value”到criteria列表中
|
|
|
|
|
addCriterion("id =", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdNotEqualTo(Long value) {
|
|
|
|
|
// 添加条件“id <> value”到criteria列表中
|
|
|
|
|
addCriterion("id <>", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdGreaterThan(Long value) {
|
|
|
|
|
// 添加条件“id > value”到criteria列表中
|
|
|
|
|
addCriterion("id >", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
|
|
|
|
// 添加条件“id >= value”到criteria列表中
|
|
|
|
|
addCriterion("id >=", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdLessThan(Long value) {
|
|
|
|
|
// 添加条件“id < value”到criteria列表中
|
|
|
|
|
addCriterion("id <", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
|
|
|
|
// 添加条件“id <= value”到criteria列表中
|
|
|
|
|
addCriterion("id <=", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdIn(List<Long> values) {
|
|
|
|
|
// 添加条件“id in (values)”到criteria列表中
|
|
|
|
|
addCriterion("id in", values, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdNotIn(List<Long> values) {
|
|
|
|
|
// 添加条件“id not in (values)”到criteria列表中
|
|
|
|
|
addCriterion("id not in", values, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdBetween(Long value1, Long value2) {
|
|
|
|
|
// 添加条件“id between value1 and value2”到criteria列表中
|
|
|
|
|
addCriterion("id between", value1, value2, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
|
|
|
|
// 添加条件“id not between value1 and value2”到criteria列表中
|
|
|
|
|
addCriterion("id not between", value1, value2, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameIsNull() {
|
|
|
|
|
// 添加条件“name is null”到criteria列表中
|
|
|
|
|
addCriterion("name is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameIsNotNull() {
|
|
|
|
|
// 添加条件“name is not null”到criteria列表中
|
|
|
|
|
addCriterion("name is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameEqualTo(String value) {
|
|
|
|
|
// 添加条件“name = value”到criteria列表中
|
|
|
|
|
addCriterion("name =", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameNotEqualTo(String value) {
|
|
|
|
|
// 添加条件“name <> value”到criteria列表中
|
|
|
|
|
addCriterion("name <>", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameGreaterThan(String value) {
|
|
|
|
|
// 添加条件“name > value”到criteria列表中
|
|
|
|
|
addCriterion("name >", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
|
|
|
|
// 添加条件“name >= value”到criteria列表中
|
|
|
|
|
addCriterion("name >=", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameLessThan(String value) {
|
|
|
|
|
// 添加条件“name < value”到criteria列表中
|
|
|
|
|
addCriterion("name <", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameLessThanOrEqualTo(String value) {
|
|
|
|
|
// 添加条件 "name <= value" 到criteria列表中
|
|
|
|
|
addCriterion("name <=", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameLike(String value) {
|
|
|
|
|
// 添加条件 "name like value" 到criteria列表中
|
|
|
|
|
addCriterion("name like", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameNotLike(String value) {
|
|
|
|
|
// 添加条件 "name not like value" 到criteria列表中
|
|
|
|
|
addCriterion("name not like", value, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameIn(List<String> values) {
|
|
|
|
|
// 添加条件 "name in (values)" 到criteria列表中
|
|
|
|
|
addCriterion("name in", values, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameNotIn(List<String> values) {
|
|
|
|
|
// 添加条件 "name not in (values)" 到criteria列表中
|
|
|
|
|
addCriterion("name not in", values, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Criteria andNameBetween(String value1, String value2) {
|
|
|
|
|
// 添加条件 "name between value1 and value2"
|
|
|
|
|
addCriterion("name between", value1, value2, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andNameNotBetween(String value1, String value2) {
|
|
|
|
|
// 添加条件 "name not between value1 and value2"
|
|
|
|
|
addCriterion("name not between", value1, value2, "name");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconIsNull() {
|
|
|
|
|
// 添加条件 "icon is null"
|
|
|
|
|
addCriterion("icon is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconIsNotNull() {
|
|
|
|
|
// 添加条件 "icon is not null"
|
|
|
|
|
addCriterion("icon is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconEqualTo(String value) {
|
|
|
|
|
// 添加条件 "icon = value"
|
|
|
|
|
addCriterion("icon =", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconNotEqualTo(String value) {
|
|
|
|
|
// 添加条件 "icon <> value"
|
|
|
|
|
addCriterion("icon <>", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconGreaterThan(String value) {
|
|
|
|
|
// 添加条件 "icon > value"
|
|
|
|
|
addCriterion("icon >", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconGreaterThanOrEqualTo(String value) {
|
|
|
|
|
// 添加条件 "icon >= value"
|
|
|
|
|
addCriterion("icon >=", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconLessThan(String value) {
|
|
|
|
|
// 添加条件 "icon < value"
|
|
|
|
|
addCriterion("icon <", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconLessThanOrEqualTo(String value) {
|
|
|
|
|
// 添加条件 "icon <= value"
|
|
|
|
|
addCriterion("icon <=", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconLike(String value) {
|
|
|
|
|
// 添加条件 "icon like value"
|
|
|
|
|
addCriterion("icon like", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconNotLike(String value) {
|
|
|
|
|
// 添加条件 "icon not like value"
|
|
|
|
|
addCriterion("icon not like", value, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconIn(List<String> values) {
|
|
|
|
|
// 添加条件 "icon in (values)"
|
|
|
|
|
addCriterion("icon in", values, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconNotIn(List<String> values) {
|
|
|
|
|
// 添加条件 "icon not in (values)"
|
|
|
|
|
addCriterion("icon not in", values, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconBetween(String value1, String value2) {
|
|
|
|
|
// 添加条件 "icon between value1 and value2"
|
|
|
|
|
addCriterion("icon between", value1, value2, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andIconNotBetween(String value1, String value2) {
|
|
|
|
|
// 添加条件 "icon not between value1 and value2"
|
|
|
|
|
addCriterion("icon not between", value1, value2, "icon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountIsNull() {
|
|
|
|
|
// 添加条件 "help_count is null"
|
|
|
|
|
addCriterion("help_count is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountIsNotNull() {
|
|
|
|
|
// 添加条件 "help_count is not null"
|
|
|
|
|
addCriterion("help_count is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "help_count = value"
|
|
|
|
|
addCriterion("help_count =", value, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountNotEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "help_count <> value"
|
|
|
|
|
addCriterion("help_count <>", value, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountGreaterThan(Integer value) {
|
|
|
|
|
// 添加条件 "help_count > value"
|
|
|
|
|
addCriterion("help_count >", value, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountGreaterThanOrEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "help_count >= value"
|
|
|
|
|
addCriterion("help_count >=", value, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountLessThan(Integer value) {
|
|
|
|
|
// 添加条件 "help_count < value"
|
|
|
|
|
addCriterion("help_count <", value, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountLessThanOrEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "help_count <= value"
|
|
|
|
|
addCriterion("help_count <=", value, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountIn(List<Integer> values) {
|
|
|
|
|
// 添加条件 "help_count in (values)"
|
|
|
|
|
addCriterion("help_count in", values, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountNotIn(List<Integer> values) {
|
|
|
|
|
// 添加条件 "help_count not in (values)"
|
|
|
|
|
addCriterion("help_count not in", values, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountBetween(Integer value1, Integer value2) {
|
|
|
|
|
// 添加条件 "help_count between value1 and value2"
|
|
|
|
|
addCriterion("help_count between", value1, value2, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andHelpCountNotBetween(Integer value1, Integer value2) {
|
|
|
|
|
// 添加条件 "help_count not between value1 and value2"
|
|
|
|
|
addCriterion("help_count not between", value1, value2, "helpCount");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusIsNull() {
|
|
|
|
|
// 添加条件 "show_status is null"
|
|
|
|
|
addCriterion("show_status is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusIsNotNull() {
|
|
|
|
|
// 添加条件 "show_status is not null"
|
|
|
|
|
addCriterion("show_status is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "show_status = value"
|
|
|
|
|
addCriterion("show_status =", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusNotEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "show_status <> value"
|
|
|
|
|
addCriterion("show_status <>", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusGreaterThan(Integer value) {
|
|
|
|
|
// 添加条件 "show_status > value"
|
|
|
|
|
addCriterion("show_status >", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusGreaterThanOrEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "show_status >= value"
|
|
|
|
|
addCriterion("show_status >=", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusLessThan(Integer value) {
|
|
|
|
|
// 添加条件 "show_status < value"
|
|
|
|
|
addCriterion("show_status <", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andShowStatusLessThanOrEqualTo(Integer value) {
|
|
|
|
|
// 添加条件 "show_status <= value"
|
|
|
|
|
addCriterion("show_status <=", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否在给定的值列表中
|
|
|
|
|
public Criteria andShowStatusIn(List<Integer> values) {
|
|
|
|
|
addCriterion("show_status in", values, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否不在给定的值列表中
|
|
|
|
|
public Criteria andShowStatusNotIn(List<Integer> values) {
|
|
|
|
|
addCriterion("show_status not in", values, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否在给定的两个值之间(包含边界)
|
|
|
|
|
public Criteria andShowStatusBetween(Integer value1, Integer value2) {
|
|
|
|
|
addCriterion("show_status between", value1, value2, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否不在给定的两个值之间(不包含边界)
|
|
|
|
|
public Criteria andShowStatusNotBetween(Integer value1, Integer value2) {
|
|
|
|
|
addCriterion("show_status not between", value1, value2, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 字段是否为空
|
|
|
|
|
public Criteria andSortIsNull() {
|
|
|
|
|
addCriterion("sort is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 字段是否不为空
|
|
|
|
|
public Criteria andSortIsNotNull() {
|
|
|
|
|
addCriterion("sort is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否等于给定的值
|
|
|
|
|
public Criteria andSortEqualTo(Integer value) {
|
|
|
|
|
addCriterion("sort =", value, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不等于给定的值
|
|
|
|
|
public Criteria andSortNotEqualTo(Integer value) {
|
|
|
|
|
addCriterion("sort <>", value, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否大于给定的值
|
|
|
|
|
public Criteria andSortGreaterThan(Integer value) {
|
|
|
|
|
addCriterion("sort >", value, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否大于或等于给定的值
|
|
|
|
|
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
|
|
|
|
|
addCriterion("sort >=", value, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否小于给定的值
|
|
|
|
|
public Criteria andSortLessThan(Integer value) {
|
|
|
|
|
addCriterion("sort <", value, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否小于或等于给定的值
|
|
|
|
|
public Criteria andSortLessThanOrEqualTo(Integer value) {
|
|
|
|
|
addCriterion("sort <=", value, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否在给定的值列表中
|
|
|
|
|
public Criteria andSortIn(List<Integer> values) {
|
|
|
|
|
addCriterion("sort in", values, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不在给定的值列表中
|
|
|
|
|
public Criteria andSortNotIn(List<Integer> values) {
|
|
|
|
|
addCriterion("sort not in", values, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否在给定的两个值之间(包含边界)
|
|
|
|
|
public Criteria andSortBetween(Integer value1, Integer value2) {
|
|
|
|
|
addCriterion("sort between", value1, value2, "sort");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 sort 是否不在给定的两个值之间(不包含边界)
|
|
|
|
|
public Criteria andSortNotBetween(Integer value1, Integer value2) {
|
|
|
|
|
addCriterion("sort not between", value1, value2, "sort");
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,用于创建一个Criterion对象,只包含条件和值
|
|
|
|
|
protected Criterion(String condition, Object value) {
|
|
|
|
|
// 调用另一个构造函数,并传递null作为第三个参数
|
|
|
|
|
this(condition, value, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,用于创建一个Criterion对象,包含条件、值、第二个值和类型处理器
|
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
|
|
|
|
// 调用父类的构造函数
|
|
|
|
|
super();
|
|
|
|
|
// 初始化条件字段
|
|
|
|
|
this.condition = condition;
|
|
|
|
|
// 初始化值字段
|
|
|
|
|
this.value = value;
|
|
|
|
|
// 初始化第二个值字段
|
|
|
|
|
this.secondValue = secondValue;
|
|
|
|
|
// 初始化类型处理器字段
|
|
|
|
|
this.typeHandler = typeHandler;
|
|
|
|
|
// 设置betweenValue为true,表示这是一个范围查询
|
|
|
|
|
this.betweenValue = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue) {
|
|
|
|
|
this(condition, value, secondValue, null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|