Browse Source

甄别首页查询错误

田爽 5 tháng trước cách đây
mục cha
commit
475f0fe8fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Hotline.Api/Controllers/CommonPController.cs

+ 1 - 1
src/Hotline.Api/Controllers/CommonPController.cs

@@ -497,7 +497,7 @@ namespace Hotline.Api.Controllers
 				.Includes(x => x.OrderVisit, y => y.Order)
 				.Includes(x => x.OrderVisit, y => y.Employee)
 				.Includes(x => x.OrderScreens)
-				.Where(x => x.OrderScreens.Any(s => s.Status == EScreenStatus.SendBack && s.SendBackApply == true) || x.OrderScreens.Any(s => (s.Status != EScreenStatus.SendBack && s.SendBackApply != true)) == false)
+				.Where(x => x.OrderScreens.Any(s => s.Status == EScreenStatus.SendBack && s.ScreenType ==  EOrderScreenType.Org && s.SendBackApply == true) || x.OrderScreens.Any() == false)
 				.Where(x => x.OrderVisit.VisitState == EVisitState.Visited && x.OrderVisit.IsCanHandle)
 				.Where(x => x.VisitTarget == EVisitTarget.Org && x.VisitOrgCode == _sessionContext.OrgId && (
 					SqlFunc.JsonField(x.OrgProcessingResults, "Key") == "1" ||