@@ -135,7 +135,7 @@ public static String deleteByExample(ProviderContext providerContext) {
135135 + "DELETE FROM " + entity .tableName ()
136136 + util .parameterNotNull ("Example cannot be null" )
137137 //是否允许空条件,默认允许,允许时不检查查询条件
138- + (entity .getProp ("deleteByExample.allowEmpty" , true ) ?
138+ + (entity .getPropBoolean ("deleteByExample.allowEmpty" , true ) ?
139139 "" : util .variableIsFalse ("_parameter.isEmpty()" , "Example Criteria cannot be empty" ))
140140 + EXAMPLE_WHERE_CLAUSE
141141 + util .ifTest ("endSql != null and endSql != ''" , () -> "${endSql}" ));
@@ -158,7 +158,7 @@ public String getSql(EntityTable entity) {
158158 //TODO 测试
159159 + variableNotNull ("example" , "Example cannot be null" )
160160 //是否允许空条件,默认允许,允许时不检查查询条件
161- + (entity .getProp ("updateByExample.allowEmpty" , true ) ?
161+ + (entity .getPropBoolean ("updateByExample.allowEmpty" , true ) ?
162162 "" : variableIsFalse ("example.isEmpty()" , "Example Criteria cannot be empty" ))
163163 + UPDATE_BY_EXAMPLE_WHERE_CLAUSE
164164 + ifTest ("example.endSql != null and example.endSql != ''" , () -> "${example.endSql}" );
@@ -182,7 +182,7 @@ public String getSql(EntityTable entity) {
182182 + EXAMPLE_SET_CLAUSE_INNER_WHEN
183183 + variableNotNull ("example" , "Example cannot be null" )
184184 //是否允许空条件,默认允许,允许时不检查查询条件
185- + (entity .getProp ("updateByExample.allowEmpty" , true ) ?
185+ + (entity .getPropBoolean ("updateByExample.allowEmpty" , true ) ?
186186 "" : variableIsFalse ("example.isEmpty()" , "Example Criteria cannot be empty" ))
187187 + UPDATE_BY_EXAMPLE_WHERE_CLAUSE
188188 + ifTest ("example.endSql != null and example.endSql != ''" , () -> "${example.endSql}" );
@@ -208,7 +208,7 @@ public String getSql(EntityTable entity) {
208208 //TODO 测试
209209 + variableNotNull ("example" , "Example cannot be null" )
210210 //是否允许空条件,默认允许,允许时不检查查询条件
211- + (entity .getProp ("updateByExampleSelective.allowEmpty" , true ) ?
211+ + (entity .getPropBoolean ("updateByExampleSelective.allowEmpty" , true ) ?
212212 "" : variableIsFalse ("example.isEmpty()" , "Example Criteria cannot be empty" ))
213213 + UPDATE_BY_EXAMPLE_WHERE_CLAUSE
214214 + ifTest ("example.endSql != null and example.endSql != ''" , () -> "${example.endSql}" );
0 commit comments