@ -4,47 +4,60 @@ import com.xmomen.framework.mybatis.model.BaseMybatisExample;
import java.util.ArrayList ;
import java.util.List ;
// 系统字典参数示例类
public class SysDictionaryParameterExample extends BaseMybatisExample {
// 排序字段
protected String orderByClause ;
// 是否去重
protected boolean distinct ;
// 查询条件
protected List < Criteria > oredCriteria ;
// 构造函数
public SysDictionaryParameterExample ( ) {
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 ) {
@ -53,37 +66,46 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
return criteria ;
}
// 创建查询条件
protected Criteria createCriteriaInternal ( ) {
Criteria criteria = new Criteria ( ) ;
return criteria ;
}
// 清空查询条件
public void clear ( ) {
oredCriteria . clear ( ) ;
orderByClause = null ;
distinct = false ;
}
// 生成查询条件
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" ) ;
@ -91,6 +113,7 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
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 +121,7 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
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" ) ;
@ -105,358 +129,434 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
criteria . add ( new Criterion ( condition , value1 , value2 ) ) ;
}
// 添加ID为空的查询条件
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 ( Integer value ) {
addCriterion ( "ID =" , value , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID不等于指定值的查询条件
public Criteria andIdNotEqualTo ( Integer value ) {
addCriterion ( "ID <>" , value , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID大于指定值的查询条件
public Criteria andIdGreaterThan ( Integer value ) {
addCriterion ( "ID >" , value , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID大于等于指定值的查询条件
public Criteria andIdGreaterThanOrEqualTo ( Integer value ) {
addCriterion ( "ID >=" , value , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID小于指定值的查询条件
public Criteria andIdLessThan ( Integer value ) {
addCriterion ( "ID <" , value , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID小于等于指定值的查询条件
public Criteria andIdLessThanOrEqualTo ( Integer value ) {
addCriterion ( "ID <=" , value , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID在指定值列表中的查询条件
public Criteria andIdIn ( List < Integer > values ) {
addCriterion ( "ID in" , values , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID不在指定值列表中的查询条件
public Criteria andIdNotIn ( List < Integer > values ) {
addCriterion ( "ID not in" , values , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID在指定值之间的查询条件
public Criteria andIdBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "ID between" , value1 , value2 , "id" ) ;
return ( Criteria ) this ;
}
// 添加ID不在指定值之间的查询条件
public Criteria andIdNotBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "ID not between" , value1 , value2 , "id" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID为空的查询条件
public Criteria andSysDictionaryIdIsNull ( ) {
addCriterion ( "SYS_DICTIONARY_ID is null" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID不为空的查询条件
public Criteria andSysDictionaryIdIsNotNull ( ) {
addCriterion ( "SYS_DICTIONARY_ID is not null" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID等于指定值的查询条件
public Criteria andSysDictionaryIdEqualTo ( Integer value ) {
addCriterion ( "SYS_DICTIONARY_ID =" , value , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID不等于指定值的查询条件
public Criteria andSysDictionaryIdNotEqualTo ( Integer value ) {
addCriterion ( "SYS_DICTIONARY_ID <>" , value , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID大于指定值的查询条件
public Criteria andSysDictionaryIdGreaterThan ( Integer value ) {
addCriterion ( "SYS_DICTIONARY_ID >" , value , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID大于等于指定值的查询条件
public Criteria andSysDictionaryIdGreaterThanOrEqualTo ( Integer value ) {
addCriterion ( "SYS_DICTIONARY_ID >=" , value , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID小于指定值的查询条件
public Criteria andSysDictionaryIdLessThan ( Integer value ) {
addCriterion ( "SYS_DICTIONARY_ID <" , value , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID小于等于指定值的查询条件
public Criteria andSysDictionaryIdLessThanOrEqualTo ( Integer value ) {
addCriterion ( "SYS_DICTIONARY_ID <=" , value , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID在指定值列表中的查询条件
public Criteria andSysDictionaryIdIn ( List < Integer > values ) {
addCriterion ( "SYS_DICTIONARY_ID in" , values , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID不在指定值列表中的查询条件
public Criteria andSysDictionaryIdNotIn ( List < Integer > values ) {
addCriterion ( "SYS_DICTIONARY_ID not in" , values , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID在指定值之间的查询条件
public Criteria andSysDictionaryIdBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "SYS_DICTIONARY_ID between" , value1 , value2 , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SYS_DICTIONARY_ID不在指定值之间的查询条件
public Criteria andSysDictionaryIdNotBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "SYS_DICTIONARY_ID not between" , value1 , value2 , "sysDictionaryId" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE为空的查询条件
public Criteria andShowValueIsNull ( ) {
addCriterion ( "SHOW_VALUE is null" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE不为空的查询条件
public Criteria andShowValueIsNotNull ( ) {
addCriterion ( "SHOW_VALUE is not null" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE等于指定值的查询条件
public Criteria andShowValueEqualTo ( String value ) {
addCriterion ( "SHOW_VALUE =" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE不等于指定值的查询条件
public Criteria andShowValueNotEqualTo ( String value ) {
addCriterion ( "SHOW_VALUE <>" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE大于指定值的查询条件
public Criteria andShowValueGreaterThan ( String value ) {
addCriterion ( "SHOW_VALUE >" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE大于等于指定值的查询条件
public Criteria andShowValueGreaterThanOrEqualTo ( String value ) {
addCriterion ( "SHOW_VALUE >=" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE小于指定值的查询条件
public Criteria andShowValueLessThan ( String value ) {
addCriterion ( "SHOW_VALUE <" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE小于等于指定值的查询条件
public Criteria andShowValueLessThanOrEqualTo ( String value ) {
addCriterion ( "SHOW_VALUE <=" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE包含指定值的查询条件
public Criteria andShowValueLike ( String value ) {
addCriterion ( "SHOW_VALUE like" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE不包含指定值的查询条件
public Criteria andShowValueNotLike ( String value ) {
addCriterion ( "SHOW_VALUE not like" , value , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE在指定值列表中的查询条件
public Criteria andShowValueIn ( List < String > values ) {
addCriterion ( "SHOW_VALUE in" , values , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE不在指定值列表中的查询条件
public Criteria andShowValueNotIn ( List < String > values ) {
addCriterion ( "SHOW_VALUE not in" , values , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE在指定值之间的查询条件
public Criteria andShowValueBetween ( String value1 , String value2 ) {
addCriterion ( "SHOW_VALUE between" , value1 , value2 , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加SHOW_VALUE不在指定值之间的查询条件
public Criteria andShowValueNotBetween ( String value1 , String value2 ) {
addCriterion ( "SHOW_VALUE not between" , value1 , value2 , "showValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE为空的查询条件
public Criteria andRealValueIsNull ( ) {
addCriterion ( "REAL_VALUE is null" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE不为空的查询条件
public Criteria andRealValueIsNotNull ( ) {
addCriterion ( "REAL_VALUE is not null" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE等于指定值的查询条件
public Criteria andRealValueEqualTo ( String value ) {
addCriterion ( "REAL_VALUE =" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE不等于指定值的查询条件
public Criteria andRealValueNotEqualTo ( String value ) {
addCriterion ( "REAL_VALUE <>" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE大于指定值的查询条件
public Criteria andRealValueGreaterThan ( String value ) {
addCriterion ( "REAL_VALUE >" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE大于等于指定值的查询条件
public Criteria andRealValueGreaterThanOrEqualTo ( String value ) {
addCriterion ( "REAL_VALUE >=" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE小于指定值的查询条件
public Criteria andRealValueLessThan ( String value ) {
addCriterion ( "REAL_VALUE <" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE小于等于指定值的查询条件
public Criteria andRealValueLessThanOrEqualTo ( String value ) {
addCriterion ( "REAL_VALUE <=" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE包含指定值的查询条件
// 根据传入的value参数, 添加一个REAL_VALUE like的条件
public Criteria andRealValueLike ( String value ) {
addCriterion ( "REAL_VALUE like" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE不包含指定值的查询条件
public Criteria andRealValueNotLike ( String value ) {
addCriterion ( "REAL_VALUE not like" , value , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE在指定值列表中的查询条件
public Criteria andRealValueIn ( List < String > values ) {
addCriterion ( "REAL_VALUE in" , values , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE不在指定值列表中的查询条件
public Criteria andRealValueNotIn ( List < String > values ) {
addCriterion ( "REAL_VALUE not in" , values , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE在指定值之间的查询条件
public Criteria andRealValueBetween ( String value1 , String value2 ) {
addCriterion ( "REAL_VALUE between" , value1 , value2 , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加REAL_VALUE不在指定值之间的查询条件
public Criteria andRealValueNotBetween ( String value1 , String value2 ) {
addCriterion ( "REAL_VALUE not between" , value1 , value2 , "realValue" ) ;
return ( Criteria ) this ;
}
// 添加SORT_VALUE为空的查询条件
public Criteria andSortValueIsNull ( ) {
addCriterion ( "SORT_VALUE is null" ) ;
return ( Criteria ) this ;
}
// 添加SORT_VALUE不为空的查询条件
public Criteria andSortValueIsNotNull ( ) {
addCriterion ( "SORT_VALUE is not null" ) ;
return ( Criteria ) this ;
}
// 添加SORT_VALUE等于指定值的查询条件
public Criteria andSortValueEqualTo ( Integer value ) {
addCriterion ( "SORT_VALUE =" , value , "sortValue" ) ;
return ( Criteria ) this ;
}
// 添加SORT_VALUE不等于指定值的查询条件
public Criteria andSortValueNotEqualTo ( Integer value ) {
addCriterion ( "SORT_VALUE <>" , value , "sortValue" ) ;
return ( Criteria ) this ;
}
// 添加SORT_VALUE大于指定值的查询条件
public Criteria andSortValueGreaterThan ( Integer value ) {
addCriterion ( "SORT_VALUE >" , value , "sortValue" ) ;
return ( Criteria ) this ;
}
// 添加SORT_VALUE大于等于指定值的查询条件
public Criteria andSortValueGreaterThanOrEqualTo ( Integer value ) {
addCriterion ( "SORT_VALUE >=" , value , "sortValue" ) ;
return ( Criteria ) this ;
// 添加一个条件, SORT_VALUE 小于指定的值
// 添加SORT_VALUE小于指定值的查询条件
}
public Criteria andSortValueLessThan ( Integer value ) {
addCriterion ( "SORT_VALUE <" , value , "sortValue" ) ;
return ( Criteria ) this ;
// 添加SORT_VALUE小于等于指定值的查询条件
}
public Criteria andSortValueLessThanOrEqualTo ( Integer value ) {
addCriterion ( "SORT_VALUE <=" , value , "sortValue" ) ;
return ( Criteria ) this ;
// 添加SORT_VALUE在指定值列表中的查询条件
}
public Criteria andSortValueIn ( List < Integer > values ) {
addCriterion ( "SORT_VALUE in" , values , "sortValue" ) ;
return ( Criteria ) this ;
// 添加SORT_VALUE不在指定值列表中的查询条件
}
public Criteria andSortValueNotIn ( List < Integer > values ) {
addCriterion ( "SORT_VALUE not in" , values , "sortValue" ) ;
return ( Criteria ) this ;
// 添加SORT_VALUE在指定值之间的查询条件
}
public Criteria andSortValueBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "SORT_VALUE between" , value1 , value2 , "sortValue" ) ;
return ( Criteria ) this ;
// 添加SORT_VALUE不在指定值之间的查询条件
}
public Criteria andSortValueNotBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "SORT_VALUE not between" , value1 , value2 , "sortValue" ) ;
return ( Criteria ) this ;
// 添加AVAILABLE为空的查询条件
}
public Criteria andAvailableIsNull ( ) {
addCriterion ( "AVAILABLE is null" ) ;
return ( Criteria ) this ;
// 添加AVAILABLE不为空的查询条件
}
public Criteria andAvailableIsNotNull ( ) {
addCriterion ( "AVAILABLE is not null" ) ;
return ( Criteria ) this ;
// 添加AVAILABLE等于指定值的查询条件
}
// 根据传入的value值, 将AVAILABLE字段设置为等于value值
public Criteria andAvailableEqualTo ( Integer value ) {
addCriterion ( "AVAILABLE =" , value , "available" ) ;
return ( Criteria ) this ;
// 添加AVAILABLE不等于指定值的查询条件
}
public Criteria andAvailableNotEqualTo ( Integer value ) {
addCriterion ( "AVAILABLE <>" , value , "available" ) ;
return ( Criteria ) this ;
// 添加AVAILABLE大于指定值的查询条件
}
// 添加一个条件, AVAILABLE字段的值大于value
public Criteria andAvailableGreaterThan ( Integer value ) {
addCriterion ( "AVAILABLE >" , value , "available" ) ;
// 添加AVAILABLE大于等于指定值的查询条件
return ( Criteria ) this ;
}
public Criteria andAvailableGreaterThanOrEqualTo ( Integer value ) {
addCriterion ( "AVAILABLE >=" , value , "available" ) ;
// 添加AVAILABLE小于指定值的查询条件
return ( Criteria ) this ;
}
public Criteria andAvailableLessThan ( Integer value ) {
addCriterion ( "AVAILABLE <" , value , "available" ) ;
// 添加AVAILABLE小于等于指定值的查询条件
return ( Criteria ) this ;
}
@ -465,6 +565,7 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
return ( Criteria ) this ;
}
// 根据传入的值, 添加一个AVAILABLE in的条件
public Criteria andAvailableIn ( List < Integer > values ) {
addCriterion ( "AVAILABLE in" , values , "available" ) ;
return ( Criteria ) this ;
@ -473,13 +574,17 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
public Criteria andAvailableNotIn ( List < Integer > values ) {
addCriterion ( "AVAILABLE not in" , values , "available" ) ;
return ( Criteria ) this ;
// 添加一个条件, AVAILABLE字段在value1和value2之间
}
public Criteria andAvailableBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "AVAILABLE between" , value1 , value2 , "available" ) ;
return ( Criteria ) this ;
}
// 添加一个条件, AVAILABLE字段的值不在value1和value2之间
// 调用addCriterion方法, 添加条件
// 返回当前Criteria对象
public Criteria andAvailableNotBetween ( Integer value1 , Integer value2 ) {
addCriterion ( "AVAILABLE not between" , value1 , value2 , "available" ) ;
return ( Criteria ) this ;
@ -496,44 +601,58 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
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 ;
}
@ -541,18 +660,26 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
public String getTypeHandler ( ) {
return typeHandler ;
}
// 构造函数, 用于创建Criterion对象
protected Criterion ( String condition ) {
super ( ) ;
this . condition = condition ;
this . typeHandler = null ;
this . noValue = true ;
// 构造函数, 用于创建Criterion对象
}
// 设置条件
protected Criterion ( String condition , Object value , String typeHandler ) {
// 设置值
// 设置类型处理器
super ( ) ;
// 判断值是否为List类型
// 如果是List类型, 则设置listValue为true
this . condition = condition ;
this . value = value ;
// 否则, 设置singleValue为true
this . typeHandler = typeHandler ;
if ( value instanceof List < ? > ) {
this . listValue = true ;
@ -563,15 +690,28 @@ public class SysDictionaryParameterExample extends BaseMybatisExample {
protected Criterion ( String condition , Object value ) {
this ( condition , value , null ) ;
// 构造函数, 用于创建Criterion对象
}
// 设置条件
// 设置值
protected Criterion ( String condition , Object value , Object secondValue , String typeHandler ) {
// 设置第二个值
// 设置类型处理器
super ( ) ;
// 设置条件
// 设置betweenValue为true
// 设置值
this . condition = condition ;
// 设置第二个值
// 设置类型处理器
this . value = value ;
// 设置betweenValue为true
this . secondValue = secondValue ;
this . typeHandler = typeHandler ;
this . betweenValue = true ;
// 构造函数, 用于创建Criterion对象
// 调用另一个构造函数, 传入condition、value、secondValue和null
}
protected Criterion ( String condition , Object value , Object secondValue ) {