TANG JIANG 1 year ago
parent
commit
c09de6ab99

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

@@ -881,9 +881,10 @@ namespace Hotline.Api.Controllers.Bi
                 .Select((it, o) => new DepartmentAcceptanceTypeStatisticsDto
                 {
                     OrgName = it.OrgLevelOneCode == "001" ? "热线中心" : o.Name,
+                    OrgCode = it.OrgLevelOneCode,
                     OrgType = (int)o.OrgType == 2 ? "区县部门" : "市直部门",
                     ZxAllCount = SqlFunc.AggregateSum(SqlFunc.IIF(it.AcceptTypeCode == "10", 1, 0)),
-                    ZxAllTimes = SqlFunc.AggregateSum(SqlFunc.IIF(it.AcceptTypeCode == "10"&& it.AllDuration!=null, it.AllDuration, 0)),
+                    ZxAllTimes = SqlFunc.AggregateSum(SqlFunc.IIF(it.AcceptTypeCode == "10" && it.AllDuration != null, it.AllDuration, 0)),
 
                     JyAllCount = SqlFunc.AggregateSum(SqlFunc.IIF(it.AcceptTypeCode == "15", 1, 0)),
                     JyAllTimes = SqlFunc.AggregateSum(SqlFunc.IIF(it.AcceptTypeCode == "15" && it.FileDurationWorkday != null, it.FileDurationWorkday, 0)),

+ 1 - 0
src/Hotline.Share/Dtos/Order/DepartmentAcceptanceTypeStatisticsDto.cs

@@ -7,6 +7,7 @@
         /// 部门名称
         /// </summary>
         public string OrgName { get; set; }
+        public string OrgCode { get; set; }
 
         /// <summary>
         /// 部门类型