@@ -279,6 +279,7 @@ private void buildDeleteByCondition(StringBuilder builder) {
279
279
builder .append ("<if test=\" _condition != null\" >" );
280
280
builder .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
281
281
builder .append (buildCondition ());
282
+ builder .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
282
283
builder .append ("</trim>" );
283
284
builder .append ("</if>" );
284
285
builder .append ("</delete>" );
@@ -332,6 +333,7 @@ private void buildFindBasicByPager(StringBuilder builder) {
332
333
condition .append ("<if test=\" _condition != null\" >" );
333
334
condition .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
334
335
condition .append (buildCondition ());
336
+ condition .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
335
337
condition .append ("</trim>" );
336
338
condition .append ("</if>" );
337
339
@@ -347,6 +349,7 @@ private void buildFindByPager(StringBuilder builder) {
347
349
condition .append ("<if test=\" _condition != null\" >" );
348
350
condition .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
349
351
condition .append (buildCondition ());
352
+ condition .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
350
353
condition .append ("</trim>" );
351
354
condition .append ("</if>" );
352
355
@@ -411,6 +414,7 @@ private void buildCountByCondition(StringBuilder builder) {
411
414
builder .append ("<if test=\" _condition != null\" >" );
412
415
builder .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
413
416
builder .append (buildCondition ());
417
+ builder .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
414
418
builder .append ("</trim>" );
415
419
builder .append ("</if>" );
416
420
@@ -425,6 +429,7 @@ private void buildCountBasicByCondition(StringBuilder builder) {
425
429
builder .append ("<if test=\" _condition != null\" >" );
426
430
builder .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
427
431
builder .append (buildCondition ());
432
+ builder .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
428
433
builder .append ("</trim>" );
429
434
builder .append ("</if>" );
430
435
@@ -555,6 +560,7 @@ private void buildFindBasicAll(StringBuilder builder) {
555
560
builder .append ("<if test=\" _condition != null\" >" );
556
561
builder .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
557
562
builder .append (buildCondition ());
563
+ builder .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
558
564
builder .append ("</trim>" );
559
565
builder .append ("</if>" );
560
566
@@ -581,6 +587,8 @@ private void buildFindAll(StringBuilder builder) {
581
587
builder .append ("<if test=\" _condition != null\" >" );
582
588
builder .append ("<trim prefix=\" where \" prefixOverrides=\" and |or \" >" );
583
589
builder .append (buildCondition ());
590
+ builder .append ("<include refid=\" SELECT_CONDITION_INNER\" />" );
591
+
584
592
builder .append ("</trim>" );
585
593
builder .append ("</if>" );
586
594
0 commit comments