一对多的select时漏了sorter

This commit is contained in:
Xu Chang 2022-09-24 16:14:30 +08:00
parent 8d6c2b574c
commit 8023bc7e33
2 changed files with 5 additions and 1 deletions

View File

@ -280,7 +280,7 @@ var CascadeStore = /** @class */ (function (_super) {
}
else {
(0, assert_1.default)(relation instanceof Array);
var _g = projection2[attr], subProjection_1 = _g.data, subFilter_1 = _g.filter, indexFrom_1 = _g.indexFrom, count_1 = _g.count, subSorter = _g.sorter;
var _g = projection2[attr], subProjection_1 = _g.data, subFilter_1 = _g.filter, indexFrom_1 = _g.indexFrom, count_1 = _g.count, subSorter_1 = _g.sorter;
var _h = tslib_1.__read(relation, 2), entity2_1 = _h[0], foreignKey_1 = _h[1];
if (foreignKey_1) {
// 基于属性的一对多
@ -298,6 +298,7 @@ var CascadeStore = /** @class */ (function (_super) {
$in: ids,
},
_a), subFilter_1]),
sorter: subSorter_1,
indexFrom: indexFrom_1,
count: count_1
}, context, option)];
@ -332,6 +333,7 @@ var CascadeStore = /** @class */ (function (_super) {
$in: ids,
}
}, subFilter_1]),
sorter: subSorter_1,
indexFrom: indexFrom_1,
count: count_1
}, context, option)];

View File

@ -330,6 +330,7 @@ export abstract class CascadeStore<ED extends EntityDict & BaseEntityDict, Cxt e
$in: ids,
}
}, subFilter]),
sorter: subSorter,
indexFrom,
count
}, context, option);
@ -364,6 +365,7 @@ export abstract class CascadeStore<ED extends EntityDict & BaseEntityDict, Cxt e
$in: ids,
}
}, subFilter]),
sorter: subSorter,
indexFrom,
count
}, context, option);