Browse Source

fixed: linq method unsupported

xf 1 year ago
parent
commit
a649ca03a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Hotline.Api/Controllers/OrderController.cs

+ 1 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -2188,7 +2188,7 @@ public class OrderController : BaseController
             .WhereIF(dto.IsHandled.HasValue, d => handleStatuses.Contains(d.Status))
             .WhereIF(!string.IsNullOrEmpty(dto.Keyword),
                 d => d.No.Contains(dto.Keyword!) || d.Title.Contains(dto.Keyword!))
-            .Where(d => !d.IsSigned() || d.SignerId == _sessionContext.RequiredUserId)
+            .Where(d => string.IsNullOrEmpty(d.SignerId) || d.SignerId == _sessionContext.RequiredUserId)
             .OrderByDescending(d => d.ExpiredTime)
             .ToPagedListAsync(dto, HttpContext.RequestAborted);