Преглед изворни кода

超期退回统计 中心看所有 部门看本级

田爽 пре 1 месец
родитељ
комит
0a576912a0
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/Hotline.Application/Orders/OrderApplication.cs

+ 1 - 0
src/Hotline.Application/Orders/OrderApplication.cs

@@ -5021,6 +5021,7 @@ public class OrderApplication : IOrderApplication, IScopeDependency
     {
         var query = _orderSendBackAuditRepository.Queryable()
             .Where(x => x.ApplyOrgId.Length == 6 && x.CreationTime > x.OrderExpiredTime)
+            .WhereIF(!_sessionContext.OrgIsCenter, x=>x.ApplyOrgId == _sessionContext.OrgId)
             .WhereIF(dto.StartTime.HasValue && dto.EndTime.HasValue, x => x.CreationTime >= dto.StartTime && x.CreationTime <= dto.EndTime)
             .GroupBy(x => new { x.ApplyOrgId, x.ApplyOrgName })
             .Select(x => new ExtendedSendBackVo()