translateObject时的一个小笔误
This commit is contained in:
parent
92e5d5896d
commit
6b21207e43
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue