Explorar el Código

超期明细统计

田爽 hace 11 meses
padre
commit
0517f11a09
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/Hotline.Api/Controllers/Bi/BiOrderController.cs

+ 3 - 2
src/Hotline.Api/Controllers/Bi/BiOrderController.cs

@@ -116,8 +116,9 @@ namespace Hotline.Api.Controllers.Bi
                     .WhereIF(dto.QueryType == 3, x => x.Status < EOrderStatus.Filed && x.ExpiredTime < SqlFunc.GetDate()) //业务待办超期
                     .WhereIF(dto.QueryType == 5, x =>
                         (x.Status >= EOrderStatus.Filed && x.ExpiredTime < x.FiledTime) || (x.Status < EOrderStatus.Filed && x.ExpiredTime < SqlFunc.GetDate()))
-                    .WhereIF(!string.IsNullOrEmpty(dto.OrgCode) && dto.QueryType is 1 or 3, x => x.ActualHandleOrgCode.StartsWith(dto.OrgCode))
-                    .MergeTable();
+                    .WhereIF(!string.IsNullOrEmpty(dto.OrgCode) && dto.QueryType is 1 or 3 && dto.OrgCode == "001", x => x.ActualHandleOrgCode == dto.OrgCode)
+                    .WhereIF(!string.IsNullOrEmpty(dto.OrgCode) && dto.QueryType is 1 or 3 && dto.OrgCode != "001", x => x.ActualHandleOrgCode.StartsWith(dto.OrgCode))
+					.MergeTable();
 
             if (dto.QueryType is 2 or 4 or 5)
             {