|
@@ -189,9 +189,9 @@ export abstract class BaseServiceV2 {
|
|
|
break;
|
|
|
case this.Opera.JsonObject:
|
|
|
const jokeys = key.split('.');
|
|
|
- let jorootCol = head(jokeys);
|
|
|
- let jolastKey = last(jokeys);
|
|
|
- let jopath = jokeys.filter(f => f !== jorootCol && f !== jolastKey);
|
|
|
+ const jorootCol = head(jokeys);
|
|
|
+ const jolastKey = last(jokeys);
|
|
|
+ const jopath = jokeys.filter(f => f !== jorootCol && f !== jolastKey);
|
|
|
str = `"${jorootCol}" `;
|
|
|
for (const jok of jopath) {
|
|
|
str = `${str} -> ${jok}`;
|
|
@@ -228,7 +228,7 @@ export abstract class BaseServiceV2 {
|
|
|
const numObj = getObject(path, lastKey, numberValue);
|
|
|
let numVal = JSON.stringify([numObj]);
|
|
|
const valueStrNum = `${valueStr}Num`;
|
|
|
- str = `${str} OR "${rootCol}" @> :${valueStrNum}`;
|
|
|
+ str = `(${str} OR "${rootCol}" @> :${valueStrNum})`;
|
|
|
params[valueStrNum] = numVal;
|
|
|
}
|
|
|
break;
|