public class CaseColumn<T extends ColumnQuery<?,?,?,?>> extends Object implements ColumnSegment
| 构造器和说明 |
|---|
CaseColumn() |
| 限定符和类型 | 方法和说明 |
|---|---|
CaseColumn<T> |
el(com.baomidou.mybatisplus.core.conditions.ISqlSegment elseValue)
添加“else...”语句
|
CaseColumn<T> |
el(Object elseValue)
添加“else...”语句
|
T |
end()
完成构建,并将当前字段添加到所属条件构造器中
|
String |
getColumn()
获取表字段
|
String |
toString() |
CaseColumn<T> |
when(ColumnSegment conditionColumn,
Condition condition,
com.baomidou.mybatisplus.core.conditions.ISqlSegment conditionValue,
com.baomidou.mybatisplus.core.conditions.ISqlSegment then)
添加一对“when...then...”语句
|
CaseColumn<T> |
when(ColumnSegment conditionColumn,
Condition condition,
Object conditionValue,
Object then)
添加一对“when...then...”语句
|
CaseColumn<T> |
when(com.baomidou.mybatisplus.core.conditions.ISqlSegment when,
com.baomidou.mybatisplus.core.conditions.ISqlSegment then)
添加一对“when...then...”语句
|
CaseColumn<T> |
when(Object when,
Object then)
添加一对“when...then...”语句
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlisa, getColumnSql, getSqlSegment, setAlisapublic CaseColumn<T> when(Object when, Object then)
when - when条件then - then返回值public CaseColumn<T> when(com.baomidou.mybatisplus.core.conditions.ISqlSegment when, com.baomidou.mybatisplus.core.conditions.ISqlSegment then)
when - when条件then - then返回值public CaseColumn<T> when(ColumnSegment conditionColumn, Condition condition, com.baomidou.mybatisplus.core.conditions.ISqlSegment conditionValue, com.baomidou.mybatisplus.core.conditions.ISqlSegment then)
conditionColumn - when条件字段condition - when条件字段conditionValue - when条件值字段then - then返回值public CaseColumn<T> when(ColumnSegment conditionColumn, Condition condition, Object conditionValue, Object then)
conditionColumn - when条件字段condition - when条件字段conditionValue - when条件值字段then - then返回值public CaseColumn<T> el(com.baomidou.mybatisplus.core.conditions.ISqlSegment elseValue)
elseValue - then返回值public CaseColumn<T> el(Object elseValue)
elseValue - then返回值public T end()
public String getColumn()
ColumnSegmentgetColumn 在接口中 ColumnSegmentCopyright © 2022. All rights reserved.