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 =
101101 }
102102
103103// case expressions
104- fun case (dslCompleter : KSearchedCaseDSL .() -> Unit ): BasicColumn =
104+ fun case (dslCompleter : KSearchedCaseDSL .() -> Unit ): SearchedCaseModel =
105105 KSearchedCaseDSL ().apply (dslCompleter).run {
106106 SearchedCaseModel .Builder ()
107107 .withWhenConditions(whenConditions)
108108 .withElseValue(elseValue)
109109 .build()
110110 }
111111
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 > =
113113 KSimpleCaseDSL <T >().apply (dslCompleter).run {
114114 SimpleCaseModel .Builder <T >()
115115 .withColumn(column)
You can’t perform that action at this time.
0 commit comments