|
@@ -492,7 +492,6 @@ public class OrderController : BaseController
|
|
//推省上
|
|
//推省上
|
|
_capPublisher.Publish(EventNames.HotlineOrderVisited, new PublishVisitDto() { Order = orderDto, No = visit.No, VisitType = visit.VisitType, VisitName = visit.CreatorName, VisitTime = visit.VisitTime, VisitRemark = first.VisitContent, AreaCode = visit.Order.AreaCode!, SubjectResultSatifyCode = first.OrgProcessingResults.Id, FirstSatisfactionCode = visit.Order.FirstVisitResultCode!, ClientGuid = "" });
|
|
_capPublisher.Publish(EventNames.HotlineOrderVisited, new PublishVisitDto() { Order = orderDto, No = visit.No, VisitType = visit.VisitType, VisitName = visit.CreatorName, VisitTime = visit.VisitTime, VisitRemark = first.VisitContent, AreaCode = visit.Order.AreaCode!, SubjectResultSatifyCode = first.OrgProcessingResults.Id, FirstSatisfactionCode = visit.Order.FirstVisitResultCode!, ClientGuid = "" });
|
|
}
|
|
}
|
|
-
|
|
|
|
if (first != null)
|
|
if (first != null)
|
|
{
|
|
{
|
|
//写入质检
|
|
//写入质检
|
|
@@ -840,9 +839,29 @@ public class OrderController : BaseController
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
await _orderScreenRepository.RemoveAsync(id);
|
|
await _orderScreenRepository.RemoveAsync(id);
|
|
- throw new UserFriendlyException($"工单开启甄别流程失败!, {e.Message}", "工单开启甄别流程失败");
|
|
|
|
|
|
+ id = string.Empty;
|
|
|
|
+ throw new UserFriendlyException($"工单开启甄别流程失败!, {e.Message}", "工单开启甄别流程失败");
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(id))
|
|
|
|
+ {
|
|
|
|
+ var order = await _orderRepository.GetAsync(x => x.Id == dto.Data.OrderId);
|
|
|
|
+ if (order != null)
|
|
|
|
+ {
|
|
|
|
+ var orderDto = _mapper.Map<OrderDto>(order);
|
|
|
|
+ //推省上
|
|
|
|
+ _capPublisher.Publish(EventNames.HotlineOrderScreenApply, new PublishScreenDto() {
|
|
|
|
+ Order = orderDto,
|
|
|
|
+ No = orderDto.No,
|
|
|
|
+ CreatorName =_sessionContext.UserName,
|
|
|
|
+ TypeDicName = model.TypeDicName,
|
|
|
|
+ Content = model.Content,
|
|
|
|
+ ApplyEndTime = model.ApplyEndTime,
|
|
|
|
+ AreaCode = orderDto.AreaCode!,
|
|
|
|
+ ClientGuid = ""
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 查询工单甄别流程开启参数
|
|
/// 查询工单甄别流程开启参数
|
|
@@ -942,7 +961,28 @@ public class OrderController : BaseController
|
|
{
|
|
{
|
|
//TODO 发送短信
|
|
//TODO 发送短信
|
|
}
|
|
}
|
|
- return id;
|
|
|
|
|
|
+ //推省上
|
|
|
|
+ //if (!string.IsNullOrEmpty(id))
|
|
|
|
+ // {
|
|
|
|
+ // var order = await _orderRepository.GetAsync(x => x.Id == dto.Data.OrderId);
|
|
|
|
+ // if (order != null)
|
|
|
|
+ // {
|
|
|
|
+ // var orderDto = _mapper.Map<OrderDto>(order);
|
|
|
|
+
|
|
|
|
+ // _capPublisher.Publish(EventNames.HotlineOrderScreenApply, new PublishScreenDto()
|
|
|
|
+ // {
|
|
|
|
+ // Order = orderDto,
|
|
|
|
+ // No = orderDto.No,
|
|
|
|
+ // CreatorName = _sessionContext.UserName,
|
|
|
|
+ // TypeDicName = model.TypeDicName,
|
|
|
|
+ // Content = model.Content,
|
|
|
|
+ // ApplyEndTime = model.ApplyEndTime,
|
|
|
|
+ // AreaCode = orderDto.AreaCode!,
|
|
|
|
+ // ClientGuid = ""
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ return id;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -967,14 +1007,35 @@ public class OrderController : BaseController
|
|
supervise.State = 1;
|
|
supervise.State = 1;
|
|
if (dto.Files.Any()) await _fileRepository.AddFileAsync(dto.Files, supervise.Id, HttpContext.RequestAborted);
|
|
if (dto.Files.Any()) await _fileRepository.AddFileAsync(dto.Files, supervise.Id, HttpContext.RequestAborted);
|
|
await _orderSuperviseRepository.UpdateAsync(supervise, HttpContext.RequestAborted);
|
|
await _orderSuperviseRepository.UpdateAsync(supervise, HttpContext.RequestAborted);
|
|
- }
|
|
|
|
|
|
+ //推省上
|
|
|
|
+ //if (!string.IsNullOrEmpty(id))
|
|
|
|
+ // {
|
|
|
|
+ // var order = await _orderRepository.GetAsync(x => x.Id == dto.Data.OrderId);
|
|
|
|
+ // if (order != null)
|
|
|
|
+ // {
|
|
|
|
+ // var orderDto = _mapper.Map<OrderDto>(order);
|
|
|
|
+
|
|
|
|
+ // _capPublisher.Publish(EventNames.HotlineOrderScreenApply, new PublishScreenDto()
|
|
|
|
+ // {
|
|
|
|
+ // Order = orderDto,
|
|
|
|
+ // No = orderDto.No,
|
|
|
|
+ // CreatorName = _sessionContext.UserName,
|
|
|
|
+ // TypeDicName = model.TypeDicName,
|
|
|
|
+ // Content = model.Content,
|
|
|
|
+ // ApplyEndTime = model.ApplyEndTime,
|
|
|
|
+ // AreaCode = orderDto.AreaCode!,
|
|
|
|
+ // ClientGuid = ""
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
|
|
- /// <summary>
|
|
|
|
- /// 签收督办
|
|
|
|
- /// </summary>
|
|
|
|
- /// <param name="dto"></param>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [Permission(EPermission.SignSupervise)]
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 签收督办
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [Permission(EPermission.SignSupervise)]
|
|
[HttpPost("supervise/sign")]
|
|
[HttpPost("supervise/sign")]
|
|
public async Task SignSupervise([FromBody] SignOrderSuperviseDto dto)
|
|
public async Task SignSupervise([FromBody] SignOrderSuperviseDto dto)
|
|
{
|
|
{
|
|
@@ -985,15 +1046,36 @@ public class OrderController : BaseController
|
|
supervise.SignTime = DateTime.Now;
|
|
supervise.SignTime = DateTime.Now;
|
|
supervise.SignUser = _sessionContext.UserName;
|
|
supervise.SignUser = _sessionContext.UserName;
|
|
await _orderSuperviseRepository.UpdateAsync(supervise, HttpContext.RequestAborted);
|
|
await _orderSuperviseRepository.UpdateAsync(supervise, HttpContext.RequestAborted);
|
|
- }
|
|
|
|
|
|
+ //推省上
|
|
|
|
+ //if (!string.IsNullOrEmpty(id))
|
|
|
|
+ // {
|
|
|
|
+ // var order = await _orderRepository.GetAsync(x => x.Id == dto.Data.OrderId);
|
|
|
|
+ // if (order != null)
|
|
|
|
+ // {
|
|
|
|
+ // var orderDto = _mapper.Map<OrderDto>(order);
|
|
|
|
+
|
|
|
|
+ // _capPublisher.Publish(EventNames.HotlineOrderScreenApply, new PublishScreenDto()
|
|
|
|
+ // {
|
|
|
|
+ // Order = orderDto,
|
|
|
|
+ // No = orderDto.No,
|
|
|
|
+ // CreatorName = _sessionContext.UserName,
|
|
|
|
+ // TypeDicName = model.TypeDicName,
|
|
|
|
+ // Content = model.Content,
|
|
|
|
+ // ApplyEndTime = model.ApplyEndTime,
|
|
|
|
+ // AreaCode = orderDto.AreaCode!,
|
|
|
|
+ // ClientGuid = ""
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
- /// <summary>
|
|
|
|
- /// 督办详情
|
|
|
|
- /// </summary>
|
|
|
|
- /// <param name="id"></param>
|
|
|
|
- /// <returns></returns>
|
|
|
|
- [Permission(EPermission.SuperviseEntity)]
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 督办详情
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="id"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [Permission(EPermission.SuperviseEntity)]
|
|
[HttpGet("supervise/{id}")]
|
|
[HttpGet("supervise/{id}")]
|
|
public async Task<OrderSupervise> SuperviseEntity(string id)
|
|
public async Task<OrderSupervise> SuperviseEntity(string id)
|
|
{
|
|
{
|
|
@@ -1051,6 +1133,27 @@ public class OrderController : BaseController
|
|
{
|
|
{
|
|
//TODO 发送短信
|
|
//TODO 发送短信
|
|
}
|
|
}
|
|
|
|
+ //推省上
|
|
|
|
+ //if (!string.IsNullOrEmpty(id))
|
|
|
|
+ // {
|
|
|
|
+ // var order = await _orderRepository.GetAsync(x => x.Id == dto.Data.OrderId);
|
|
|
|
+ // if (order != null)
|
|
|
|
+ // {
|
|
|
|
+ // var orderDto = _mapper.Map<OrderDto>(order);
|
|
|
|
+
|
|
|
|
+ // _capPublisher.Publish(EventNames.HotlineOrderScreenApply, new PublishScreenDto()
|
|
|
|
+ // {
|
|
|
|
+ // Order = orderDto,
|
|
|
|
+ // No = orderDto.No,
|
|
|
|
+ // CreatorName = _sessionContext.UserName,
|
|
|
|
+ // TypeDicName = model.TypeDicName,
|
|
|
|
+ // Content = model.Content,
|
|
|
|
+ // ApplyEndTime = model.ApplyEndTime,
|
|
|
|
+ // AreaCode = orderDto.AreaCode!,
|
|
|
|
+ // ClientGuid = ""
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
return id;
|
|
return id;
|
|
}
|
|
}
|
|
|
|
|