|
@@ -95,8 +95,8 @@ namespace Hotline.Application.Subscribers
|
|
|
IOrderApplication orderApplication,
|
|
|
ISystemSettingCacheManager systemSettingCacheManager,
|
|
|
IRepository<OrderWarning> orderWarningRepository,
|
|
|
- IRepository<OrderRevoke> orderRevokeRepository,
|
|
|
- IRepository<ContingencyManagementOrders> contingencyManagementOrdersRepository,
|
|
|
+ IRepository<OrderRevoke> orderRevokeRepository,
|
|
|
+ IRepository<ContingencyManagementOrders> contingencyManagementOrdersRepository,
|
|
|
IOptionsSnapshot<AppConfiguration> appOptions,
|
|
|
ICallApplication callApplication,
|
|
|
IRepository<OrderPublish> orderPublishRepository,
|
|
@@ -173,6 +173,7 @@ namespace Hotline.Application.Subscribers
|
|
|
{
|
|
|
order.Status = EOrderStatus.WaitForAccept;
|
|
|
}
|
|
|
+
|
|
|
if (dto.Result is 1)
|
|
|
order.ProvinceSendBack = true;
|
|
|
else
|
|
@@ -226,7 +227,6 @@ namespace Hotline.Application.Subscribers
|
|
|
//}
|
|
|
await _orderSendBackRepository.UpdateAsync(sendBack, cancellationToken);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -259,6 +259,8 @@ namespace Hotline.Application.Subscribers
|
|
|
};
|
|
|
await _orderRevokeRepository.AddAsync(orderRevoke, cancellationToken);
|
|
|
|
|
|
+ //todo 计算order 期满时间
|
|
|
+
|
|
|
//宜宾需求:特提至中心(优先派单组无派单组节点就特提至坐席),由派单员归档
|
|
|
var current = SessionContextCreator.CreateSessionContext(_sessionContext, dto.Source, _cityBaseConfiguration.Value);
|
|
|
if (string.IsNullOrEmpty(order?.WorkflowId))
|
|
@@ -273,7 +275,8 @@ namespace Hotline.Application.Subscribers
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- await _workflowDomainService.RecallToCenterFirstToSendAsync(order.WorkflowId, dto.Opinion, current, order.Status >= EOrderStatus.Filed, cancellationToken);
|
|
|
+ await _workflowDomainService.RecallToCenterFirstToSendAsync(order.WorkflowId, dto.Opinion, current,
|
|
|
+ order.Status >= EOrderStatus.Filed, order.ExpiredTime, cancellationToken);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -392,7 +395,8 @@ namespace Hotline.Application.Subscribers
|
|
|
if (exists)
|
|
|
throw new UserFriendlyException($"收到重复督办编号: {dto.ProvinceOrderSuperviseDto.SuperviseSerial}");
|
|
|
|
|
|
- var order = await _orderRepository.Queryable().Where(x => x.ReceiveProvinceNo == dto.ProvinceOrderSuperviseDto!.CaseSerial).FirstAsync(cancellationToken);
|
|
|
+ var order = await _orderRepository.Queryable().Where(x => x.ReceiveProvinceNo == dto.ProvinceOrderSuperviseDto!.CaseSerial)
|
|
|
+ .FirstAsync(cancellationToken);
|
|
|
var org = await _systemOrganizeRepository.GetAsync(x => x.Id == order.ActualHandleOrgCode, cancellationToken);
|
|
|
var model = new OrderSupervise();
|
|
|
model.InitId();
|
|
@@ -488,7 +492,7 @@ namespace Hotline.Application.Subscribers
|
|
|
.Includes(x => x.Order)
|
|
|
.Includes(x => x.OrderVisitDetails)
|
|
|
.Where(x => x.Order.ReceiveProvinceNo == dto.ProvinceNo &&
|
|
|
- x.VisitState != Share.Enums.Order.EVisitState.None).FirstAsync(cancellationToken);
|
|
|
+ x.VisitState != Share.Enums.Order.EVisitState.None).FirstAsync(cancellationToken);
|
|
|
|
|
|
if (orderVisit != null)
|
|
|
{
|
|
@@ -505,6 +509,7 @@ namespace Hotline.Application.Subscribers
|
|
|
orgProcessingResults.Key = dicData.DicDataValue;
|
|
|
orgProcessingResults.Value = dicData.DicDataName;
|
|
|
}
|
|
|
+
|
|
|
if (orgProcessingResults != null)
|
|
|
{
|
|
|
//主表
|
|
@@ -527,8 +532,10 @@ namespace Hotline.Application.Subscribers
|
|
|
{
|
|
|
orderVisit.OrderVisitDetails[i].OrgProcessingResults = orgProcessingResults;
|
|
|
}
|
|
|
+
|
|
|
orderVisit.OrderVisitDetails[i].VisitContent = dto.VisitContent;
|
|
|
}
|
|
|
+
|
|
|
await _orderVisitedDetailRepository.UpdateRangeAsync(orderVisit.OrderVisitDetails, cancellationToken);
|
|
|
//工单
|
|
|
orderVisit.Order.Visited(orgProcessingResults.Key, orgProcessingResults.Value);
|
|
@@ -570,8 +577,7 @@ namespace Hotline.Application.Subscribers
|
|
|
{
|
|
|
//判断是否有发布数据
|
|
|
var orderPublish = await _orderPublishRepository.Queryable()
|
|
|
- .Includes(x => x.Order).
|
|
|
- Where(x => x.Order.ReceiveProvinceNo == dto.ProvinceNo).FirstAsync(cancellationToken);
|
|
|
+ .Includes(x => x.Order).Where(x => x.Order.ReceiveProvinceNo == dto.ProvinceNo).FirstAsync(cancellationToken);
|
|
|
if (orderPublish == null)
|
|
|
{
|
|
|
orderPublish = new OrderPublish();
|
|
@@ -600,7 +606,9 @@ namespace Hotline.Application.Subscribers
|
|
|
orderVisit.VisitType = dto.VisitType;
|
|
|
orderVisit.IsCanAiVisit = false;
|
|
|
orderVisit.IsCanHandle = false;
|
|
|
- var VisitSatisfaction = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.VisitSatisfaction).Where(x => x.DicDataValue == dto.OrgProcessingResults).Select(m => new Kv { Key = m.DicDataValue, Value = m.DicDataName }).FirstOrDefault();
|
|
|
+ var VisitSatisfaction = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.VisitSatisfaction)
|
|
|
+ .Where(x => x.DicDataValue == dto.OrgProcessingResults).Select(m => new Kv { Key = m.DicDataValue, Value = m.DicDataName })
|
|
|
+ .FirstOrDefault();
|
|
|
var satisfy = VisitSatisfaction;
|
|
|
orderVisit.NowEvaluate = satisfy;
|
|
|
string visitId = await _orderVisitRepository.AddAsync(orderVisit);
|
|
@@ -634,10 +642,7 @@ namespace Hotline.Application.Subscribers
|
|
|
order.Visited(satisfy.Key, satisfy.Value);
|
|
|
order.Status = EOrderStatus.Visited;
|
|
|
await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -710,7 +715,8 @@ namespace Hotline.Application.Subscribers
|
|
|
{
|
|
|
case "0":
|
|
|
//退回:撤回至发起人
|
|
|
- await _workflowDomainService.RecallToStartStepAsync(order.WorkflowId, dto.Opinion, current, order.Status >= EOrderStatus.Filed, cancellationToken);//todo think是否需要保存附件至省平台办理节点?
|
|
|
+ await _workflowDomainService.RecallToStartStepAsync(order.WorkflowId, dto.Opinion, current, order.Status >= EOrderStatus.Filed,
|
|
|
+ cancellationToken); //todo think是否需要保存附件至省平台办理节点?
|
|
|
break;
|
|
|
case "1":
|
|
|
//办结:归档
|
|
@@ -899,7 +905,8 @@ namespace Hotline.Application.Subscribers
|
|
|
[CapSubscribe(EventNames.SharingOrderTranspondCity)]
|
|
|
public async Task RecTranspondCityRawDataAsync(TranspondCityRawDataDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- var data = await _transpondCityRawDataRepository.GetAsync(p => p.OrderCode == dto.OrderCode && p.Direction == ETranspondDirection.Out, cancellationToken);
|
|
|
+ var data = await _transpondCityRawDataRepository.GetAsync(p => p.OrderCode == dto.OrderCode && p.Direction == ETranspondDirection.Out,
|
|
|
+ cancellationToken);
|
|
|
if (data != null)
|
|
|
{
|
|
|
data.IsSuccess = dto.IsSuccess;
|
|
@@ -936,8 +943,10 @@ namespace Hotline.Application.Subscribers
|
|
|
//后面还需要处理流程中的意见
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
//修改推送数据办理结果
|
|
|
- var data = await _transpondCityRawDataRepository.GetAsync(p => p.OrderCode == dto.No && p.Direction == ETranspondDirection.Out, cancellationToken);
|
|
|
+ var data = await _transpondCityRawDataRepository.GetAsync(p => p.OrderCode == dto.No && p.Direction == ETranspondDirection.Out,
|
|
|
+ cancellationToken);
|
|
|
if (data != null)
|
|
|
{
|
|
|
data.ActualOpinion = dto.Opinion;
|
|
@@ -1007,7 +1016,6 @@ namespace Hotline.Application.Subscribers
|
|
|
//这里需要判断是否是警情退回
|
|
|
orderFlowDto.IsNonPoliceReturn = false;
|
|
|
await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderFiled, orderFlowDto, cancellationToken: cancellationToken);
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1033,5 +1041,4 @@ namespace Hotline.Application.Subscribers
|
|
|
//todo
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
+}
|