|
@@ -382,6 +382,38 @@ public class OrderController : BaseController
|
|
|
|
|
|
visitedDetail.Add(seatDetail);
|
|
visitedDetail.Add(seatDetail);
|
|
await _orderVisitedDetailRepository.AddRangeAsync(visitedDetail, HttpContext.RequestAborted);
|
|
await _orderVisitedDetailRepository.AddRangeAsync(visitedDetail, HttpContext.RequestAborted);
|
|
|
|
+
|
|
|
|
+ if (orderVisit.VisitState == EVisitState.Visited)
|
|
|
|
+ {
|
|
|
|
+ //推省上
|
|
|
|
+ await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderVisited,
|
|
|
|
+ new PublishVisitDto()
|
|
|
|
+ {
|
|
|
|
+ Order = _mapper.Map<OrderDto>(order),
|
|
|
|
+ No = orderVisit.No,
|
|
|
|
+ VisitType = orderVisit.VisitType,
|
|
|
|
+ VisitName = orderVisit.CreatorName,
|
|
|
|
+ VisitTime = orderVisit.VisitTime,
|
|
|
|
+ VisitRemark = orderVisit.NowEvaluate?.Value,
|
|
|
|
+ AreaCode = order.AreaCode!,
|
|
|
|
+ SubjectResultSatifyCode = orderVisit.NowEvaluate?.Key,
|
|
|
|
+ FirstSatisfactionCode = orderVisit.NowEvaluate?.Key,
|
|
|
|
+ ClientGuid = ""
|
|
|
|
+ }, cancellationToken: HttpContext.RequestAborted);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //推门户
|
|
|
|
+ await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderVisitedWeb, new PublishVisitAllDto()
|
|
|
|
+ {
|
|
|
|
+ Id = orderVisit.Id,
|
|
|
|
+ Order = _mapper.Map<OrderDto>(order),
|
|
|
|
+ OrderVisitDetails = _mapper.Map<List<VisitDetailDto>>(orderVisit.OrderVisitDetails),
|
|
|
|
+ VisitName = _sessionContext.UserName,
|
|
|
|
+ VisitTime = orderVisit.VisitTime,
|
|
|
|
+ VisitType = orderVisit.VisitType,
|
|
|
|
+ VisitState = orderVisit.VisitState,
|
|
|
|
+ PublishTime = orderVisit.PublishTime,
|
|
|
|
+ }, cancellationToken: HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
catch
|
|
catch
|
|
{
|
|
{
|
|
@@ -489,6 +521,27 @@ public class OrderController : BaseController
|
|
|
|
|
|
visitedDetail.Add(seatDetail);
|
|
visitedDetail.Add(seatDetail);
|
|
await _orderVisitedDetailRepository.AddRangeAsync(visitedDetail, HttpContext.RequestAborted);
|
|
await _orderVisitedDetailRepository.AddRangeAsync(visitedDetail, HttpContext.RequestAborted);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (orderVisit.VisitState == EVisitState.Visited)
|
|
|
|
+ {
|
|
|
|
+ //推省上
|
|
|
|
+ await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderVisited,
|
|
|
|
+ new PublishVisitDto()
|
|
|
|
+ {
|
|
|
|
+ Order = _mapper.Map<OrderDto>(order),
|
|
|
|
+ No = orderVisit.No,
|
|
|
|
+ VisitType = orderVisit.VisitType,
|
|
|
|
+ VisitName = orderVisit.CreatorName,
|
|
|
|
+ VisitTime = orderVisit.VisitTime,
|
|
|
|
+ VisitRemark = orderVisit.NowEvaluate?.Value,
|
|
|
|
+ AreaCode = order.AreaCode!,
|
|
|
|
+ SubjectResultSatifyCode = orderVisit.NowEvaluate?.Key,
|
|
|
|
+ FirstSatisfactionCode = orderVisit.NowEvaluate?.Key,
|
|
|
|
+ ClientGuid = ""
|
|
|
|
+ }, cancellationToken: HttpContext.RequestAborted);
|
|
|
|
+ }
|
|
|
|
+
|
|
//推送回访信息
|
|
//推送回访信息
|
|
//推门户
|
|
//推门户
|
|
await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderVisitedWeb, new PublishVisitAllDto()
|
|
await _capPublisher.PublishAsync(Hotline.Share.Mq.EventNames.HotlineOrderVisitedWeb, new PublishVisitAllDto()
|
|
@@ -4641,9 +4694,9 @@ public class OrderController : BaseController
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
d => d.Title.Contains(dto.Keyword!) || d.No.Contains(dto.Keyword!))
|
|
d => d.Title.Contains(dto.Keyword!) || d.No.Contains(dto.Keyword!))
|
|
//.WhereIF(!string.IsNullOrEmpty(dto.Content), d => d.Content.Contains(dto.Content!))
|
|
//.WhereIF(!string.IsNullOrEmpty(dto.Content), d => d.Content.Contains(dto.Content!))
|
|
- .WhereIF(!string.IsNullOrEmpty(dto.AcceptType), d => d.AcceptType == dto.AcceptType)//受理类型
|
|
|
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.AcceptType), d => d.AcceptTypeCode == dto.AcceptType)//受理类型
|
|
//.WhereIF(dto.AcceptTypes.Any(), d => dto.AcceptTypes.Contains(d.AcceptTypeCode)) //受理类型
|
|
//.WhereIF(dto.AcceptTypes.Any(), d => dto.AcceptTypes.Contains(d.AcceptTypeCode)) //受理类型
|
|
- .WhereIF(!string.IsNullOrEmpty(dto.Channel), d => d.SourceChannel == dto.Channel)//来源渠道
|
|
|
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Channel), d => d.SourceChannelCode == dto.Channel)//来源渠道
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Hotspot), d => d.HotspotSpliceName != null && d.HotspotSpliceName.Contains(dto.Hotspot))
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Hotspot), d => d.HotspotSpliceName != null && d.HotspotSpliceName.Contains(dto.Hotspot))
|
|
.WhereIF(!string.IsNullOrEmpty(dto.TransferPhone), d => d.TransferPhone.Contains(dto.TransferPhone!))
|
|
.WhereIF(!string.IsNullOrEmpty(dto.TransferPhone), d => d.TransferPhone.Contains(dto.TransferPhone!))
|
|
.WhereIF(!string.IsNullOrEmpty(dto.OrgName), d => d.CurrentHandleOrgName == dto.OrgName)//接办部门
|
|
.WhereIF(!string.IsNullOrEmpty(dto.OrgName), d => d.CurrentHandleOrgName == dto.OrgName)//接办部门
|