|
@@ -626,14 +626,15 @@ namespace Hotline.Api.Controllers.Bigscreen
|
|
.Includes(x => x.Order)
|
|
.Includes(x => x.Order)
|
|
.Where(x => x.Order.Status < EOrderStatus.Filed && dateTime > x.Order.NearlyExpiredTime && dateTime < x.Order.ExpiredTime)
|
|
.Where(x => x.Order.Status < EOrderStatus.Filed && dateTime > x.Order.NearlyExpiredTime && dateTime < x.Order.ExpiredTime)
|
|
.Where(x => x.AuditTime >= StartTime && x.AuditTime <= EndTime
|
|
.Where(x => x.AuditTime >= StartTime && x.AuditTime <= EndTime
|
|
- && x.State != ESecondaryHandlingState.NotApply
|
|
|
|
|
|
+ && x.State != ESecondaryHandlingState.NotApply
|
|
&& x.State != ESecondaryHandlingState.Apply && x.State != ESecondaryHandlingState.Refuse)
|
|
&& x.State != ESecondaryHandlingState.Apply && x.State != ESecondaryHandlingState.Refuse)
|
|
.CountAsync()
|
|
.CountAsync()
|
|
};
|
|
};
|
|
var da = await _orderSecondaryHandlingRepository.Queryable()
|
|
var da = await _orderSecondaryHandlingRepository.Queryable()
|
|
.LeftJoin<OrderVisit>((os, ov) => os.VisitId == ov.Id)
|
|
.LeftJoin<OrderVisit>((os, ov) => os.VisitId == ov.Id)
|
|
- .LeftJoin<OrderVisitDetail>((os, ov, od) => os.VisitDetailId == od.Id)
|
|
|
|
- .Where((os, ov, od) => ov.VisitTime >= StartTime && ov.VisitTime <= EndTime && os.State != ESecondaryHandlingState.NotApply
|
|
|
|
|
|
+ .LeftJoin<OrderVisitDetail>((os, ov, od) => ov.Id == od.VisitId)
|
|
|
|
+ .Where((os, ov, od) => ov.VisitState == EVisitState.Visited && od.VisitTarget == EVisitTarget.Org && ov.VisitTime >= StartTime && ov.VisitTime <= EndTime
|
|
|
|
+ && os.State != ESecondaryHandlingState.NotApply
|
|
&& os.State != ESecondaryHandlingState.Apply && os.State != ESecondaryHandlingState.Refuse)
|
|
&& os.State != ESecondaryHandlingState.Apply && os.State != ESecondaryHandlingState.Refuse)
|
|
.Select((os, ov, od) => new SecondarySatisfactionDto()
|
|
.Select((os, ov, od) => new SecondarySatisfactionDto()
|
|
{
|
|
{
|