@@ -457,15 +457,15 @@ protected void newSelectKeyMappedStatement(MappedStatement ms, EntityHelper.Enti
457
457
458
458
public IfSqlNode ExampleValidSqlNode (Configuration configuration ) {
459
459
List <SqlNode > whenSqlNodes = new ArrayList <SqlNode >();
460
- IfSqlNode noValueSqlNode = new IfSqlNode (new TextSqlNode ("and ${criterion.condition}" ), "criterion.noValue" );
460
+ IfSqlNode noValueSqlNode = new IfSqlNode (new TextSqlNode (" and ${criterion.condition}" ), "criterion.noValue" );
461
461
whenSqlNodes .add (noValueSqlNode );
462
- IfSqlNode singleValueSqlNode = new IfSqlNode (new TextSqlNode ("and ${criterion.condition} #{criterion.value}" ), "criterion.singleValue" );
462
+ IfSqlNode singleValueSqlNode = new IfSqlNode (new TextSqlNode (" and ${criterion.condition} #{criterion.value}" ), "criterion.singleValue" );
463
463
whenSqlNodes .add (singleValueSqlNode );
464
- IfSqlNode betweenValueSqlNode = new IfSqlNode (new TextSqlNode ("and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}" ), "criterion.betweenValue" );
464
+ IfSqlNode betweenValueSqlNode = new IfSqlNode (new TextSqlNode (" and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}" ), "criterion.betweenValue" );
465
465
whenSqlNodes .add (betweenValueSqlNode );
466
466
467
467
List <SqlNode > listValueContentSqlNodes = new ArrayList <SqlNode >();
468
- listValueContentSqlNodes .add (new TextSqlNode ("and ${criterion.condition}" ));
468
+ listValueContentSqlNodes .add (new TextSqlNode (" and ${criterion.condition}" ));
469
469
ForEachSqlNode listValueForEachSqlNode = new ForEachSqlNode (configuration , new StaticTextSqlNode ("#{listItem}" ), "criterion.value" , null , "listItem" , "(" , ")" , "," );
470
470
listValueContentSqlNodes .add (listValueForEachSqlNode );
471
471
IfSqlNode listValueSqlNode = new IfSqlNode (new MixedSqlNode (listValueContentSqlNodes ), "criterion.noValue" );
@@ -487,7 +487,7 @@ public IfSqlNode ExampleValidSqlNode(Configuration configuration) {
487
487
* @return
488
488
*/
489
489
public WhereSqlNode exampleWhereClause (Configuration configuration ) {
490
- ForEachSqlNode forEachSqlNode = new ForEachSqlNode (configuration , ExampleValidSqlNode (configuration ), "oredCriteria" , null , "criteria" , null , null , "or " );
490
+ ForEachSqlNode forEachSqlNode = new ForEachSqlNode (configuration , ExampleValidSqlNode (configuration ), "oredCriteria" , null , "criteria" , null , null , " or " );
491
491
WhereSqlNode whereSqlNode = new WhereSqlNode (configuration , forEachSqlNode );
492
492
return whereSqlNode ;
493
493
}
@@ -500,7 +500,7 @@ public WhereSqlNode exampleWhereClause(Configuration configuration) {
500
500
*/
501
501
public WhereSqlNode updateByExampleWhereClause (Configuration configuration ) {
502
502
//和上面方法的区别就在"example.oredCriteria"
503
- ForEachSqlNode forEachSqlNode = new ForEachSqlNode (configuration , ExampleValidSqlNode (configuration ), "example.oredCriteria" , null , "criteria" , null , null , "or " );
503
+ ForEachSqlNode forEachSqlNode = new ForEachSqlNode (configuration , ExampleValidSqlNode (configuration ), "example.oredCriteria" , null , "criteria" , null , null , " or " );
504
504
WhereSqlNode whereSqlNode = new WhereSqlNode (configuration , forEachSqlNode );
505
505
return whereSqlNode ;
506
506
}
0 commit comments