translateObject时的一个小笔误

This commit is contained in:
Xu Chang 2023-11-27 12:19:12 +08:00
parent 92e5d5896d
commit 6b21207e43
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ class MySqlTranslator extends sqlTranslator_1.SqlTranslator {
if (typeof o[key] !== 'object') {
if (o[key] !== null && o[key] !== undefined) {
if (stmt) {
stmt += ', ';
stmt += ' and ';
}
stmt += `${alias}.${attr}->>"$${p2}"`;
if (typeof o[key] === 'string') {

View File

@ -441,7 +441,7 @@ export class MySqlTranslator<ED extends EntityDict & BaseEntityDict> extends Sql
if (typeof o[key] !== 'object') {
if (o[key] !== null && o[key] !== undefined) {
if (stmt) {
stmt += ', ';
stmt += ' and ';
}
stmt += `${alias}.${attr}->>"$${p2}"`;
if (typeof o[key] === 'string') {