又调整回来listNode取freshValue的逻辑,要加上filter判定

This commit is contained in:
Xu Chang 2025-03-15 18:48:32 +08:00
parent 6283c03f63
commit 495b7ff675
2 changed files with 5 additions and 6 deletions

View File

@ -770,7 +770,7 @@ class ListNode extends EntityNode {
* 若本结点为脏则要考虑当前这些ids是否还满足filters若一个结点出现这种情况要考虑则要自己保证filter中的关联关系数据都在cache当中不然会出现数据为空
* by Xc 20250308
*/
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter && this.isDirty() ? combineFilters(this.entity, this.cache.getSchema(), [filter, {
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter ? combineFilters(this.entity, this.cache.getSchema(), [filter, {
id: {
$in: ids2,
}

View File

@ -937,12 +937,11 @@ class ListNode<
const ids2 = ids.concat(createIds);
/**
* modi状态下
* ids作为查询条件()
* ids是否还满足filtersfilter中的关联关系数据都在cache当中
* by Xc 20250308
* modi状态下filter加以过滤filter中外联的条件order创建了一个shipship
* cache当中
* by Xc 20250315
*/
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter && this.isDirty() ? combineFilters(
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter ? combineFilters(
this.entity,
this.cache.getSchema(),
[filter, {