|
@@ -510,7 +510,7 @@ namespace Hotline.Application.Orders
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.CDPN), x => x.Order.CallRecord.CDPN.Contains(dto.CDPN))
|
|
|
.WhereIF(dto.VisitTypeId is 1 && !string.IsNullOrEmpty(key), x => SqlFunc.JsonField(x.VisitDetail.OrgProcessingResults, "Key") == key)
|
|
|
.WhereIF(dto.VisitTypeId is 2 && !string.IsNullOrEmpty(key), x => SqlFunc.JsonField(x.VisitDetail.OrgHandledAttitude, "Key") == key)
|
|
|
- .Where(x => x.ApplyOrgId == dto.OrgId)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.OrgId), x => x.ApplyOrgId == dto.OrgId)
|
|
|
.Where(x => x.State == ESecondaryHandlingState.End);
|
|
|
}
|
|
|
|