瀏覽代碼

二次办理统计明细

田爽 2 月之前
父節點
當前提交
3dbedef369
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Hotline.Application/Orders/OrderSecondaryHandlingApplication.cs

+ 1 - 1
src/Hotline.Application/Orders/OrderSecondaryHandlingApplication.cs

@@ -510,7 +510,7 @@ namespace Hotline.Application.Orders
                 .WhereIF(!string.IsNullOrEmpty(dto.CDPN), x => x.Order.CallRecord.CDPN.Contains(dto.CDPN))
                 .WhereIF(dto.VisitTypeId is 1 && !string.IsNullOrEmpty(key), x => SqlFunc.JsonField(x.VisitDetail.OrgProcessingResults, "Key") == key)
                 .WhereIF(dto.VisitTypeId is 2 && !string.IsNullOrEmpty(key), x => SqlFunc.JsonField(x.VisitDetail.OrgHandledAttitude, "Key") == key)
-                .Where(x => x.ApplyOrgId == dto.OrgId)
+                .WhereIF(!string.IsNullOrEmpty(dto.OrgId), x => x.ApplyOrgId == dto.OrgId)
                 .Where(x => x.State == ESecondaryHandlingState.End);
         }