Browse Source

修改部门满意度明细

tangjiang 4 months ago
parent
commit
a62f6a5cb8

+ 3 - 0
src/Hotline.Application/StatisticalReport/OrderReportApplication.cs

@@ -182,6 +182,9 @@ namespace Hotline.Application.StatisticalReport
         {
             RefAsync<int> total = 0;
             ISugarQueryable<SelectOrderId> query = null;
+            if (string.IsNullOrEmpty(dto.ParentOrgCode) && dto.OrgCode == _sessionContext.RequiredOrgId)
+                dto.ParentOrgCode = _sessionContext.RequiredOrgId;
+
             switch (dto.StatisticsType)
             {
                 case EStatisticsType.YBOrderCountNum: