|
|
|
@ -5,46 +5,58 @@ import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public class CmsSubjectCommentExample {
|
|
|
|
|
// 用于存储排序子句的字符串
|
|
|
|
|
protected String orderByClause;
|
|
|
|
|
|
|
|
|
|
// 用于指示查询是否为distinct(去重)
|
|
|
|
|
protected boolean distinct;
|
|
|
|
|
|
|
|
|
|
// 用于存储多个查询条件的列表
|
|
|
|
|
protected List<Criteria> oredCriteria;
|
|
|
|
|
|
|
|
|
|
// 构造函数,初始化oredCriteria为一个空的ArrayList
|
|
|
|
|
public CmsSubjectCommentExample() {
|
|
|
|
|
oredCriteria = new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 设置排序子句的方法
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 将一个Criteria对象添加到查询条件列表中的方法
|
|
|
|
|
public void or(Criteria criteria) {
|
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建一个新的Criteria对象并添加到查询条件列表中的方法
|
|
|
|
|
public Criteria or() {
|
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
|
oredCriteria.add(criteria);
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建一个Criteria对象,如果查询条件列表为空则将其添加到列表中的方法
|
|
|
|
|
public Criteria createCriteria() {
|
|
|
|
|
Criteria criteria = createCriteriaInternal();
|
|
|
|
|
if (oredCriteria.size() == 0) {
|
|
|
|
@ -53,37 +65,46 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 内部方法,用于创建一个新的Criteria对象
|
|
|
|
|
protected Criteria createCriteriaInternal() {
|
|
|
|
|
Criteria criteria = new Criteria();
|
|
|
|
|
return criteria;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 清除所有查询条件和排序子句,并将distinct设置为false的方法
|
|
|
|
|
public void clear() {
|
|
|
|
|
oredCriteria.clear();
|
|
|
|
|
orderByClause = null;
|
|
|
|
|
distinct = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected abstract static class GeneratedCriteria {
|
|
|
|
|
// 定义一个受保护的列表,用于存储查询条件
|
|
|
|
|
protected List<Criterion> criteria;
|
|
|
|
|
|
|
|
|
|
// 构造函数,初始化criteria为一个新的ArrayList
|
|
|
|
|
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");
|
|
|
|
@ -91,6 +112,7 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
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");
|
|
|
|
@ -98,6 +120,7 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
criteria.add(new Criterion(condition, value));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 添加一个带两个值的查询条件(用于BETWEEN查询)
|
|
|
|
|
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");
|
|
|
|
@ -105,512 +128,604 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
criteria.add(new Criterion(condition, value1, value2));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 以下是各种具体的查询条件的生成方法,例如id、subjectId和memberNickName等字段的条件
|
|
|
|
|
public Criteria andIdIsNull() {
|
|
|
|
|
addCriterion("id is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否不为空
|
|
|
|
|
public Criteria andIdIsNotNull() {
|
|
|
|
|
addCriterion("id is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否等于指定值
|
|
|
|
|
public Criteria andIdEqualTo(Long value) {
|
|
|
|
|
addCriterion("id =", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否不等于指定值
|
|
|
|
|
public Criteria andIdNotEqualTo(Long value) {
|
|
|
|
|
addCriterion("id <>", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否大于指定值
|
|
|
|
|
public Criteria andIdGreaterThan(Long value) {
|
|
|
|
|
addCriterion("id >", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否大于或等于指定值
|
|
|
|
|
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
|
|
|
|
addCriterion("id >=", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否小于指定值
|
|
|
|
|
public Criteria andIdLessThan(Long value) {
|
|
|
|
|
addCriterion("id <", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否小于或等于指定值
|
|
|
|
|
public Criteria andIdLessThanOrEqualTo(Long value) {
|
|
|
|
|
addCriterion("id <=", value, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否在指定的列表中
|
|
|
|
|
public Criteria andIdIn(List<Long> values) {
|
|
|
|
|
addCriterion("id in", values, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否不在指定的列表中
|
|
|
|
|
public Criteria andIdNotIn(List<Long> values) {
|
|
|
|
|
addCriterion("id not in", values, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否在指定的范围内(包含边界)
|
|
|
|
|
public Criteria andIdBetween(Long value1, Long value2) {
|
|
|
|
|
addCriterion("id between", value1, value2, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查id是否不在指定的范围内(不包含边界)
|
|
|
|
|
public Criteria andIdNotBetween(Long value1, Long value2) {
|
|
|
|
|
addCriterion("id not between", value1, value2, "id");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否为空
|
|
|
|
|
public Criteria andSubjectIdIsNull() {
|
|
|
|
|
addCriterion("subject_id is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否不为空
|
|
|
|
|
public Criteria andSubjectIdIsNotNull() {
|
|
|
|
|
addCriterion("subject_id is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否等于指定值
|
|
|
|
|
public Criteria andSubjectIdEqualTo(Long value) {
|
|
|
|
|
addCriterion("subject_id =", value, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否不等于指定值
|
|
|
|
|
public Criteria andSubjectIdNotEqualTo(Long value) {
|
|
|
|
|
addCriterion("subject_id <>", value, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否大于指定值
|
|
|
|
|
public Criteria andSubjectIdGreaterThan(Long value) {
|
|
|
|
|
addCriterion("subject_id >", value, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否大于或等于指定值
|
|
|
|
|
public Criteria andSubjectIdGreaterThanOrEqualTo(Long value) {
|
|
|
|
|
addCriterion("subject_id >=", value, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否小于指定值
|
|
|
|
|
public Criteria andSubjectIdLessThan(Long value) {
|
|
|
|
|
addCriterion("subject_id <", value, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否小于或等于指定值
|
|
|
|
|
public Criteria andSubjectIdLessThanOrEqualTo(Long value) {
|
|
|
|
|
addCriterion("subject_id <=", value, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否在指定的列表中
|
|
|
|
|
public Criteria andSubjectIdIn(List<Long> values) {
|
|
|
|
|
addCriterion("subject_id in", values, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否不在指定的列表中
|
|
|
|
|
public Criteria andSubjectIdNotIn(List<Long> values) {
|
|
|
|
|
addCriterion("subject_id not in", values, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否在指定的范围内(包含边界)
|
|
|
|
|
public Criteria andSubjectIdBetween(Long value1, Long value2) {
|
|
|
|
|
addCriterion("subject_id between", value1, value2, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查subject_id是否不在指定的范围内(不包含边界)
|
|
|
|
|
public Criteria andSubjectIdNotBetween(Long value1, Long value2) {
|
|
|
|
|
addCriterion("subject_id not between", value1, value2, "subjectId");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否为空
|
|
|
|
|
public Criteria andMemberNickNameIsNull() {
|
|
|
|
|
addCriterion("member_nick_name is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否不为空
|
|
|
|
|
public Criteria andMemberNickNameIsNotNull() {
|
|
|
|
|
addCriterion("member_nick_name is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否等于指定值
|
|
|
|
|
public Criteria andMemberNickNameEqualTo(String value) {
|
|
|
|
|
addCriterion("member_nick_name =", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否不等于指定值
|
|
|
|
|
public Criteria andMemberNickNameNotEqualTo(String value) {
|
|
|
|
|
addCriterion("member_nick_name <>", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否大于指定值
|
|
|
|
|
public Criteria andMemberNickNameGreaterThan(String value) {
|
|
|
|
|
addCriterion("member_nick_name >", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否大于或等于指定值
|
|
|
|
|
public Criteria andMemberNickNameGreaterThanOrEqualTo(String value) {
|
|
|
|
|
addCriterion("member_nick_name >=", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查member_nick_name是否小于指定值
|
|
|
|
|
public Criteria andMemberNickNameLessThan(String value) {
|
|
|
|
|
addCriterion("member_nick_name <", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否小于或等于给定的值
|
|
|
|
|
public Criteria andMemberNickNameLessThanOrEqualTo(String value) {
|
|
|
|
|
addCriterion("member_nick_name <=", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否包含给定的值(模糊匹配)
|
|
|
|
|
public Criteria andMemberNickNameLike(String value) {
|
|
|
|
|
addCriterion("member_nick_name like", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否不包含给定的值(模糊匹配)
|
|
|
|
|
public Criteria andMemberNickNameNotLike(String value) {
|
|
|
|
|
addCriterion("member_nick_name not like", value, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否在给定的值列表中
|
|
|
|
|
public Criteria andMemberNickNameIn(List<String> values) {
|
|
|
|
|
addCriterion("member_nick_name in", values, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否不在给定的值列表中
|
|
|
|
|
public Criteria andMemberNickNameNotIn(List<String> values) {
|
|
|
|
|
addCriterion("member_nick_name not in", values, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否在给定的两个值之间
|
|
|
|
|
public Criteria andMemberNickNameBetween(String value1, String value2) {
|
|
|
|
|
addCriterion("member_nick_name between", value1, value2, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_nick_name 是否不在给定的两个值之间
|
|
|
|
|
public Criteria andMemberNickNameNotBetween(String value1, String value2) {
|
|
|
|
|
addCriterion("member_nick_name not between", value1, value2, "memberNickName");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否为空
|
|
|
|
|
public Criteria andMemberIconIsNull() {
|
|
|
|
|
addCriterion("member_icon is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否不为空
|
|
|
|
|
public Criteria andMemberIconIsNotNull() {
|
|
|
|
|
addCriterion("member_icon is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否等于给定的值
|
|
|
|
|
public Criteria andMemberIconEqualTo(String value) {
|
|
|
|
|
addCriterion("member_icon =", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否不等于给定的值
|
|
|
|
|
public Criteria andMemberIconNotEqualTo(String value) {
|
|
|
|
|
addCriterion("member_icon <>", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否大于给定的值
|
|
|
|
|
public Criteria andMemberIconGreaterThan(String value) {
|
|
|
|
|
addCriterion("member_icon >", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否大于或等于给定的值
|
|
|
|
|
public Criteria andMemberIconGreaterThanOrEqualTo(String value) {
|
|
|
|
|
addCriterion("member_icon >=", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否小于给定的值
|
|
|
|
|
public Criteria andMemberIconLessThan(String value) {
|
|
|
|
|
addCriterion("member_icon <", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否小于或等于给定的值
|
|
|
|
|
public Criteria andMemberIconLessThanOrEqualTo(String value) {
|
|
|
|
|
addCriterion("member_icon <=", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否包含给定的值(模糊匹配)
|
|
|
|
|
public Criteria andMemberIconLike(String value) {
|
|
|
|
|
addCriterion("member_icon like", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否不包含给定的值(模糊匹配)
|
|
|
|
|
public Criteria andMemberIconNotLike(String value) {
|
|
|
|
|
addCriterion("member_icon not like", value, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否在给定的值列表中
|
|
|
|
|
public Criteria andMemberIconIn(List<String> values) {
|
|
|
|
|
addCriterion("member_icon in", values, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否不在给定的值列表中
|
|
|
|
|
public Criteria andMemberIconNotIn(List<String> values) {
|
|
|
|
|
addCriterion("member_icon not in", values, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否在给定的两个值之间
|
|
|
|
|
public Criteria andMemberIconBetween(String value1, String value2) {
|
|
|
|
|
addCriterion("member_icon between", value1, value2, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 member_icon 是否不在给定的两个值之间
|
|
|
|
|
public Criteria andMemberIconNotBetween(String value1, String value2) {
|
|
|
|
|
addCriterion("member_icon not between", value1, value2, "memberIcon");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否为空
|
|
|
|
|
public Criteria andContentIsNull() {
|
|
|
|
|
addCriterion("content is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否不为空
|
|
|
|
|
public Criteria andContentIsNotNull() {
|
|
|
|
|
addCriterion("content is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否等于给定的值
|
|
|
|
|
public Criteria andContentEqualTo(String value) {
|
|
|
|
|
addCriterion("content =", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否不等于给定的值
|
|
|
|
|
public Criteria andContentNotEqualTo(String value) {
|
|
|
|
|
addCriterion("content <>", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否大于给定的值
|
|
|
|
|
public Criteria andContentGreaterThan(String value) {
|
|
|
|
|
addCriterion("content >", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否大于或等于给定的值
|
|
|
|
|
public Criteria andContentGreaterThanOrEqualTo(String value) {
|
|
|
|
|
addCriterion("content >=", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否小于给定的值
|
|
|
|
|
public Criteria andContentLessThan(String value) {
|
|
|
|
|
addCriterion("content <", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否小于或等于给定的值
|
|
|
|
|
public Criteria andContentLessThanOrEqualTo(String value) {
|
|
|
|
|
addCriterion("content <=", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否包含给定的值(模糊匹配)
|
|
|
|
|
public Criteria andContentLike(String value) {
|
|
|
|
|
addCriterion("content like", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否不包含给定的值(模糊匹配)
|
|
|
|
|
public Criteria andContentNotLike(String value) {
|
|
|
|
|
addCriterion("content not like", value, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否在给定的值列表中
|
|
|
|
|
public Criteria andContentIn(List<String> values) {
|
|
|
|
|
addCriterion("content in", values, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否不在给定的值列表中
|
|
|
|
|
public Criteria andContentNotIn(List<String> values) {
|
|
|
|
|
addCriterion("content not in", values, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否在给定的两个值之间
|
|
|
|
|
public Criteria andContentBetween(String value1, String value2) {
|
|
|
|
|
addCriterion("content between", value1, value2, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 content 是否不在给定的两个值之间
|
|
|
|
|
public Criteria andContentNotBetween(String value1, String value2) {
|
|
|
|
|
addCriterion("content not between", value1, value2, "content");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Criteria andCreateTimeIsNull() {
|
|
|
|
|
addCriterion("create_time is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否不为空
|
|
|
|
|
public Criteria andCreateTimeIsNotNull() {
|
|
|
|
|
addCriterion("create_time is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否等于给定的值
|
|
|
|
|
public Criteria andCreateTimeEqualTo(Date value) {
|
|
|
|
|
addCriterion("create_time =", value, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否不等于给定的值
|
|
|
|
|
public Criteria andCreateTimeNotEqualTo(Date value) {
|
|
|
|
|
addCriterion("create_time <>", value, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否大于给定的值
|
|
|
|
|
public Criteria andCreateTimeGreaterThan(Date value) {
|
|
|
|
|
addCriterion("create_time >", value, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否大于或等于给定的值
|
|
|
|
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
|
|
|
|
addCriterion("create_time >=", value, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否小于给定的值
|
|
|
|
|
public Criteria andCreateTimeLessThan(Date value) {
|
|
|
|
|
addCriterion("create_time <", value, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否小于或等于给定的值
|
|
|
|
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
|
|
|
|
addCriterion("create_time <=", value, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否在给定的值列表中
|
|
|
|
|
public Criteria andCreateTimeIn(List<Date> values) {
|
|
|
|
|
addCriterion("create_time in", values, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否不在给定的值列表中
|
|
|
|
|
public Criteria andCreateTimeNotIn(List<Date> values) {
|
|
|
|
|
addCriterion("create_time not in", values, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否在给定的两个值之间
|
|
|
|
|
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
|
|
|
|
addCriterion("create_time between", value1, value2, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 create_time 是否不在给定的两个值之间
|
|
|
|
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
|
|
|
|
addCriterion("create_time not between", value1, value2, "createTime");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否为空
|
|
|
|
|
public Criteria andShowStatusIsNull() {
|
|
|
|
|
addCriterion("show_status is null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否不为空
|
|
|
|
|
public Criteria andShowStatusIsNotNull() {
|
|
|
|
|
addCriterion("show_status is not null");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否等于给定的值
|
|
|
|
|
public Criteria andShowStatusEqualTo(Integer value) {
|
|
|
|
|
addCriterion("show_status =", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否不等于给定的值
|
|
|
|
|
public Criteria andShowStatusNotEqualTo(Integer value) {
|
|
|
|
|
addCriterion("show_status <>", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否大于给定的值
|
|
|
|
|
public Criteria andShowStatusGreaterThan(Integer value) {
|
|
|
|
|
addCriterion("show_status >", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否大于或等于给定的值
|
|
|
|
|
public Criteria andShowStatusGreaterThanOrEqualTo(Integer value) {
|
|
|
|
|
addCriterion("show_status >=", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否小于给定的值
|
|
|
|
|
public Criteria andShowStatusLessThan(Integer value) {
|
|
|
|
|
addCriterion("show_status <", value, "showStatus");
|
|
|
|
|
return (Criteria) this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查 show_status 是否小于或等于给定的值
|
|
|
|
|
public Criteria andShowStatusLessThanOrEqualTo(Integer 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 定义一个静态内部类 Criteria,继承自 GeneratedCriteria
|
|
|
|
|
public static class Criteria extends GeneratedCriteria {
|
|
|
|
|
// 构造函数,调用父类的构造函数
|
|
|
|
|
protected Criteria() {
|
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 定义一个静态内部类 Criterion,用于封装查询条件
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
private String condition; // 存储查询条件的字符串
|
|
|
|
|
private Object value; // 存储查询条件的值
|
|
|
|
|
private Object secondValue; // 存储查询条件的第二个值(用于 between 查询)
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,只包含条件,默认没有值,使用 null 作为类型处理器
|
|
|
|
|
protected Criterion(String condition) {
|
|
|
|
|
super();
|
|
|
|
|
this.condition = condition;
|
|
|
|
@ -618,6 +733,7 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
this.noValue = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件和值,根据值的类型设置 singleValue 或 listValue
|
|
|
|
|
protected Criterion(String condition, Object value, String typeHandler) {
|
|
|
|
|
super();
|
|
|
|
|
this.condition = condition;
|
|
|
|
@ -630,10 +746,12 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件和值,不指定类型处理器
|
|
|
|
|
protected Criterion(String condition, Object value) {
|
|
|
|
|
this(condition, value, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件、第一个值和第二个值,以及类型处理器,设置 betweenValue 为 true
|
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
|
|
|
|
super();
|
|
|
|
|
this.condition = condition;
|
|
|
|
@ -643,8 +761,10 @@ public class CmsSubjectCommentExample {
|
|
|
|
|
this.betweenValue = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 构造函数,包含条件、第一个值和第二个值,不指定类型处理器
|
|
|
|
|
protected Criterion(String condition, Object value, Object secondValue) {
|
|
|
|
|
this(condition, value, secondValue, null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|