|
@@ -2693,10 +2693,10 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
//Subtotal = SqlFunc.AggregateCount(x.AcceptorId),
|
|
|
CentreArchive =
|
|
|
SqlFunc.AggregateSum(
|
|
|
- SqlFunc.IIF(it.Status >= EOrderStatus.Filed && it.ProcessType == EProcessType.Zhiban && it.AcceptType != "无效", 1, 0)), //中心归档件
|
|
|
+ SqlFunc.IIF(it.Status >= EOrderStatus.Filed && it.FileOrgIsCenter==true && it.AcceptType != "无效", 1, 0)), //中心归档件
|
|
|
//CentreCareOf = SqlFunc.AggregateSum(SqlFunc.IIF(it.Status >= EOrderStatus.Filed && (it.FileUserRole == EFileUserType.Org || it.FileUserRole == EFileUserType.Dispatch), 1, 0)), //转办信件
|
|
|
CentreCareOf = SqlFunc.AggregateSum(SqlFunc.IIF(
|
|
|
- it.AcceptType != "无效" && (it.ProcessType == EProcessType.Jiaoban ||
|
|
|
+ it.AcceptType != "无效" && (it.FileOrgIsCenter ==false ||
|
|
|
(it.ActualHandleStepName == "派单组" && it.Status < EOrderStatus.Filed) ||
|
|
|
(it.ActualHandleStepName == "班长审批" && it.Status < EOrderStatus.Filed)), 1, 0)),
|
|
|
NoCentreCareOf =
|
|
@@ -2707,8 +2707,8 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
Invalid = SqlFunc.AggregateSum(SqlFunc.IIF(it.AcceptType == "无效", 1, 0)),
|
|
|
Repeat = SqlFunc.AggregateSum(SqlFunc.IIF(it.DuplicateIds != null && SqlFunc.JsonArrayLength(it.DuplicateIds) > 0, 1, 0)),
|
|
|
Subtotal = SqlFunc.AggregateSum(SqlFunc.IIF(
|
|
|
- (it.Status >= EOrderStatus.Filed && it.ProcessType == EProcessType.Zhiban && it.AcceptType != "无效") ||
|
|
|
- (it.AcceptType != "无效" && (it.ProcessType == EProcessType.Jiaoban ||
|
|
|
+ (it.Status >= EOrderStatus.Filed && it.FileOrgIsCenter==true && it.AcceptType != "无效") ||
|
|
|
+ (it.AcceptType != "无效" && (it.FileOrgIsCenter ==false ||
|
|
|
(it.ActualHandleStepName == "派单组" && it.Status < EOrderStatus.Filed) ||
|
|
|
(it.ActualHandleStepName == "班长审批" && it.Status < EOrderStatus.Filed))) ||
|
|
|
(it.Status <= EOrderStatus.HandOverToUnAccept) || it.AcceptType == "无效" ||
|
|
@@ -3588,8 +3588,8 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
.LeftJoin<Workflow>((x, w) => x.WorkflowId == w.Id)
|
|
|
.InnerJoin<SchedulingUser>((x, w, su) => x.HandlerId == su.UserId)
|
|
|
.Where((x, w, su) => w.ModuleCode == "OrderHandle" && x.BusinessType == EBusinessType.Send && x.Status == EWorkflowStepStatus.Handled)
|
|
|
- .Where((x, w, su) => x.CreationTime >= dto.StartTime.Value)
|
|
|
- .Where((x, w, su) => x.CreationTime <= dto.EndTime.Value)
|
|
|
+ .Where((x, w, su) => x.HandleTime >= dto.StartTime.Value)
|
|
|
+ .Where((x, w, su) => x.HandleTime <= dto.EndTime.Value)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.UserName), (x, w, su) => su.UserName == dto.UserName)
|
|
|
.GroupBy((x, w, su) => new { su.UserId, su.UserName })
|
|
|
.Select((x, w, su) => new BiOrderSendVo
|