File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/elements Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ fun or(receiver: GroupingCriteriaReceiver): AndOrCriteriaGroup =
101
101
}
102
102
103
103
// case expressions
104
- fun case (dslCompleter : KSearchedCaseDSL .() -> Unit ): BasicColumn =
104
+ fun case (dslCompleter : KSearchedCaseDSL .() -> Unit ): SearchedCaseModel =
105
105
KSearchedCaseDSL ().apply (dslCompleter).run {
106
106
SearchedCaseModel .Builder ()
107
107
.withWhenConditions(whenConditions)
108
108
.withElseValue(elseValue)
109
109
.build()
110
110
}
111
111
112
- fun <T : Any > case (column : BindableColumn <T >, dslCompleter : KSimpleCaseDSL <T >.() -> Unit ) : BasicColumn =
112
+ fun <T : Any > case (column : BindableColumn <T >, dslCompleter : KSimpleCaseDSL <T >.() -> Unit ) : SimpleCaseModel < T > =
113
113
KSimpleCaseDSL <T >().apply (dslCompleter).run {
114
114
SimpleCaseModel .Builder <T >()
115
115
.withColumn(column)
You can’t perform that action at this time.
0 commit comments