enum类型多加一种判断
This commit is contained in:
parent
38ad56d449
commit
f3608f9c31
|
|
@ -226,10 +226,10 @@ var RelationAuth = /** @class */ (function () {
|
|||
filter: filter,
|
||||
indexFrom: 0,
|
||||
count: 10,
|
||||
}, { dontCollect: true });
|
||||
}, { dontCollect: true, blockTrigger: true });
|
||||
var dealWithData_1 = function (rows) {
|
||||
// 这里如果entity指向不同的实体,一般出现这样的查询,则其权限应当不由这条deduce路径处理
|
||||
// 同上,如果找到的行数大于1行,说明deduce路径上的对象不确定,也暂不处理,等遇到了再说 by Xc 20230725
|
||||
// 同上,如果找到的行数大于1行,说明deduce路径上的对象不确定,也暂不处理 by Xc 20230725
|
||||
if (rows.length > 1 || rows.length === 0) {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.warn("\u8FDB\u884Cdeduce\u63A8\u5BFC\u65F6\u627E\u5230\u4E86".concat(rows.length, "\u884C").concat(entity, "\u6570\u636E"));
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ export declare type Q_DateComparisonValue = Q_NumberComparisonValue;
|
|||
export declare type Q_EnumComparisonValue<E> = E | OneOf<{
|
||||
$in: E[];
|
||||
$nin: E[];
|
||||
$ne: E;
|
||||
}>;
|
||||
export declare type Q_ExistsValue = {
|
||||
$exists: boolean;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ export type Q_DateComparisonValue = Q_NumberComparisonValue;
|
|||
export type Q_EnumComparisonValue<E> = E | OneOf<{
|
||||
$in: E[];
|
||||
$nin: E[];
|
||||
$ne: E;
|
||||
}>
|
||||
|
||||
export type Q_ExistsValue = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue