暂存一下,防止丢失
This commit is contained in:
@@ -263,7 +263,7 @@ func (s *AccountStore) GetPrimaryAccountsByShopIDs(ctx context.Context, shopIDs
|
||||
Where("shop_id IN ? AND is_primary = ?", shopIDs, true)
|
||||
// 注意:此处不再应用数据权限过滤
|
||||
// 因为调用方(Service 层)已经保证了 shopIDs 的合法性
|
||||
// 在 ListShopFundSummary 场景中,店铺列表已由 Service 层过滤
|
||||
// 在资金概况等批量投影场景中,调用方已经保证 shopIDs 位于当前数据范围内
|
||||
if err := query.Find(&accounts).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user