This commit is contained in:
2026-01-05 14:11:17 +01:00
parent 58984214fc
commit 9402c859f7
5 changed files with 23 additions and 5 deletions
+6 -2
View File
@@ -256,7 +256,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
const newSubQueryObj = subQueryGroup === null || subQueryGroup === void 0 ? void 0 : subQueryGroup[_field];
return genSqlSrchStr({
queryObj: newSubQueryObj,
field: _field,
field: newSubQueryObj.fieldName || _field,
join: genObject === null || genObject === void 0 ? void 0 : genObject.join,
});
});
@@ -264,7 +264,11 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
subSearchString.join(` ${queryObj.operator || "AND"} `) +
")");
}
return genSqlSrchStr({ queryObj, field, join: genObject === null || genObject === void 0 ? void 0 : genObject.join });
return genSqlSrchStr({
queryObj,
field: queryObj.fieldName || field,
join: genObject === null || genObject === void 0 ? void 0 : genObject.join,
});
});
const cleanedUpSearchStr = sqlSearhString === null || sqlSearhString === void 0 ? void 0 : sqlSearhString.filter((str) => typeof str == "string");
const isSearchStr = (cleanedUpSearchStr === null || cleanedUpSearchStr === void 0 ? void 0 : cleanedUpSearchStr[0]) && cleanedUpSearchStr.find((str) => str);