1.0.4发布前
This commit is contained in:
parent
5a5037075a
commit
e5892b749c
|
|
@ -183,6 +183,14 @@ var SqlTranslator = /** @class */ (function () {
|
|||
alias: alias,
|
||||
}); });
|
||||
}
|
||||
else if (['$not'].includes(op)) {
|
||||
analyzeFilterNode({
|
||||
node: node[op],
|
||||
path: path,
|
||||
entityName: entityName,
|
||||
alias: alias,
|
||||
});
|
||||
}
|
||||
else {
|
||||
var rel = (0, relation_1.judgeRelation)(_this.schema, entityName, op);
|
||||
if (typeof rel === 'string') {
|
||||
|
|
@ -222,7 +230,7 @@ var SqlTranslator = /** @class */ (function () {
|
|||
analyzeFilterNode({
|
||||
node: node[op],
|
||||
path: pathAttr,
|
||||
entityName: rel,
|
||||
entityName: op,
|
||||
alias: alias2,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"luxon": "^2.4.0",
|
||||
"mysql": "^2.18.1",
|
||||
"mysql2": "^2.3.3",
|
||||
"oak-domain": "file:../oak-domain",
|
||||
"oak-domain": "1.1.11",
|
||||
"uuid": "^8.3.2"
|
||||
},
|
||||
"license": "ISC",
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
"@types/node": "^17.0.42",
|
||||
"@types/uuid": "^8.3.4",
|
||||
"mocha": "^10.0.0",
|
||||
"oak-general-business": "file:../oak-general-business",
|
||||
"oak-general-business": "1.0.13",
|
||||
"ts-node": "~10.9.1",
|
||||
"tslib": "^2.4.0",
|
||||
"typescript": "~4.7.4"
|
||||
|
|
|
|||
|
|
@ -268,6 +268,14 @@ export abstract class SqlTranslator<ED extends EntityDict> {
|
|||
})
|
||||
);
|
||||
}
|
||||
else if (['$not'].includes(op)) {
|
||||
analyzeFilterNode({
|
||||
node: node![op],
|
||||
path,
|
||||
entityName,
|
||||
alias,
|
||||
})
|
||||
}
|
||||
else {
|
||||
const rel = judgeRelation(this.schema, entityName, op);
|
||||
if (typeof rel === 'string') {
|
||||
|
|
@ -307,7 +315,7 @@ export abstract class SqlTranslator<ED extends EntityDict> {
|
|||
analyzeFilterNode({
|
||||
node: node![op],
|
||||
path: pathAttr,
|
||||
entityName: rel,
|
||||
entityName: op,
|
||||
alias: alias2,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue