'respository'

This commit is contained in:
zhougf committed 2026-05-31 01:03:55 +08:00
1 parent fa1b286463
commit 38ecbf82e5
41 files changed
+67 -120

No files matched your search

@@ -41,8 +41,8 @@ public abstract class OrderRepositoryBase<TEntity, TQuery> : BaseRepository<TEnt
ArgumentNullException.ThrowIfNull(query);
var pageIndex = query.PageIndex <= 0 ? 1 : query.PageIndex;
var pageSize = query.PageSize <= 0 ? 20 : query.PageSize;
var tenant = (query.TenantId ?? string.Empty).Trim();
var owner = (query.OwnerCode ?? string.Empty).Trim();
var tenant = ScopeTenantId;
var owner = ScopeOwnerCode;
// 注意:WhereIF(condition, sql, anonymousObject) 会在 condition 为 false 时仍对参数表达式求值,
// 因此不能在匿名对象里对可能为 null 的 query.OrderNo / query.BizType 直接调用 Trim()。