|
|
@@ -168,7 +168,10 @@ public class CmsAccountController {
|
|
|
}
|
|
|
}
|
|
|
if (isMjMirror != null) {
|
|
|
- extra_sql += String.format(" and %s (select 1 from midjourney_account ma where ma.account_id = a.id limit 1)", isMjMirror ? "EXISTS" : "NOT EXISTS");
|
|
|
+ if (StrUtil.isNotEmpty(extra_sql)) {
|
|
|
+ extra_sql += " and";
|
|
|
+ }
|
|
|
+ extra_sql += String.format(" %s (select 1 from midjourney_account ma where ma.account_id = a.id limit 1)", isMjMirror ? "EXISTS" : "NOT EXISTS");
|
|
|
}
|
|
|
if (StrUtil.isNotEmpty(extra_sql)) {
|
|
|
mapBuilder.put("extra_sql", extra_sql);
|