|
@@ -36,7 +36,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.CaseIsVisit, x => x.ProcessType == Hotline.Share.Enums.Order.EProcessType.Zhiban ? "0" : "1")
|
|
|
.Map(d => d.EventDate, x => x.IncidentTime.HasValue ? x.IncidentTime : DateTime.Now)
|
|
|
.Map(d => d.PushType, x => x.PushTypeCode)
|
|
|
- .Map(d => d.AreaCode, x => x.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.AreaCode.Length > 6 ? x.AreaCode.Substring(0, 6) : x.AreaCode)
|
|
|
.Map(d => d.CaseSerial, x => x.ProvinceNo)
|
|
|
.Map(d => d.CaseSource, x => x.SourceChannelCode)
|
|
|
.Map(d => d.CaseAddress, x => x.Province + x.City + x.County + x.Street)
|
|
@@ -60,7 +60,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.CaseIsSecrect, x => x.IsSecret ? "1" : "0")
|
|
|
.Map(d => d.CaseIsVisit, x => x.ProcessType == Hotline.Share.Enums.Order.EProcessType.Zhiban ? "0" : "1")
|
|
|
.Map(d => d.EventDate, x => x.IncidentTime.HasValue ? x.IncidentTime : DateTime.Now)
|
|
|
- .Map(d => d.AreaCode, x => x.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.AreaCode.Length > 6 ? x.AreaCode.Substring(0, 6) : x.AreaCode)
|
|
|
.Map(d => d.CaseSerial, x => x.ProvinceNo)
|
|
|
.Map(d => d.CaseSource, x => x.SourceChannelCode)
|
|
|
.Map(d => d.CaseAddress, x => x.Province + x.City + x.County + x.Street)
|
|
@@ -76,11 +76,10 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.ProcessTime, x => x.WorkflowTrace.HandleTime)
|
|
|
.Map(d => d.ProcessName, x => x.WorkflowTrace.HandlerName)
|
|
|
.Map(d => d.ProcessNote, x => string.IsNullOrEmpty(x.WorkflowTrace.Opinion) == false ? x.WorkflowTrace.Opinion : x.Order.ActualOpinion)
|
|
|
- .Map(d => d.EndAreaCode, x => string.IsNullOrEmpty(x.WorkflowTrace.HandlerOrgAreaCode) == false ? x.WorkflowTrace.HandlerOrgAreaCode : x.Order.AreaCode)
|
|
|
- .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.Order.County) == false ? x.Order.County : x.Order.City)// x.WorkflowTrace.HandlerOrgAreaName
|
|
|
-
|
|
|
+ .Map(d => d.EndAreaCode, x => x.WorkflowTrace.HandlerOrgAreaCode)
|
|
|
+ .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.WorkflowTrace.HandlerOrgAreaName) == false ? x.WorkflowTrace.HandlerOrgAreaName : "宜宾市")// x.WorkflowTrace.HandlerOrgAreaName
|
|
|
.Map(d => d.CaseId, x => x.WorkflowTrace.Id)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.CliengGuid, x => x.WorkflowTrace.Id)
|
|
|
;
|
|
|
|
|
@@ -91,10 +90,10 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.ProcessTime, x => x.WorkflowTrace.HandleTime)
|
|
|
.Map(d => d.ProcessName, x => x.WorkflowTrace.HandlerName)
|
|
|
.Map(d => d.ProcessNote, x => string.IsNullOrEmpty(x.WorkflowTrace.Opinion) == false ? x.WorkflowTrace.Opinion : x.Order.ActualOpinion)
|
|
|
- .Map(d => d.EndAreaCode, x => string.IsNullOrEmpty(x.WorkflowTrace.HandlerOrgAreaCode) == false ? x.WorkflowTrace.HandlerOrgAreaCode : x.Order.AreaCode)
|
|
|
- .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.Order.County) == false ? x.Order.County : x.Order.City)// x.WorkflowTrace.HandlerOrgAreaName
|
|
|
+ .Map(d => d.EndAreaCode, x => x.WorkflowTrace.HandlerOrgAreaCode)
|
|
|
+ .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.WorkflowTrace.HandlerOrgAreaName) == false ? x.WorkflowTrace.HandlerOrgAreaName : "宜宾市")// x.WorkflowTrace.HandlerOrgAreaName
|
|
|
.Map(d => d.TrowGuid, x => x.WorkflowTrace.Id)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.CliengGuid, x => x.WorkflowTrace.Id)
|
|
|
;
|
|
|
|
|
@@ -120,7 +119,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.ApplyOuname, x => x.ApplyOrgName)
|
|
|
.Map(d => d.ApplyReason, x => x.DelayReason)
|
|
|
.Map(d => d.CaseSerial, x => x.Order.ProvinceNo)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
;
|
|
|
|
|
|
//接收
|
|
@@ -141,7 +140,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.IsSecret, x => x.CaseIsSecrect == "1" ? true : false)
|
|
|
// .Map(d => d.IsPublicity, x => x.CaseIsPublic == "1" ? true : false)
|
|
|
.Map(d => d.ExpiredTimeProvince, x => x.TfdBackTimeBf)
|
|
|
- .Map(d => d.AreaCode, x => x.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.AreaCode.Length > 6 ? x.AreaCode.Substring(0, 6) : x.AreaCode)
|
|
|
.Map(d => d.Street, x => x.CaseAddress)
|
|
|
.Map(d => d.IncidentTime, x => x.EventDate)
|
|
|
.Map(d => d.SourceChannelCode, x => x.CaseSource)
|
|
@@ -158,9 +157,9 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.EndName, x => x.Order.ActualHandlerName)
|
|
|
.Map(d => d.SendTime, x => x.Order.ActualHandleStepCreateTime)
|
|
|
.Map(d => d.FdBack, x => x.Order.ActualOpinion)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
- .Map(d => d.EndAreaCode, x => string.IsNullOrEmpty(x.Order.ActualHandleOrgAreaCode) == false ? x.Order.ActualHandleOrgAreaCode : x.Order.AreaCode)
|
|
|
- .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.Order.County) == false ? x.Order.County : x.Order.City)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
+ .Map(d => d.EndAreaCode, x => x.Order.ActualHandleOrgAreaCode)
|
|
|
+ .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.Order.ActualHandleOrgAreaName) == false ? x.Order.ActualHandleOrgAreaName : "宜宾市")
|
|
|
.Map(d => d.SignTimeBf, x => x.Order.ExpiredTime)
|
|
|
.Map(d => d.SignTime, x => x.Order.ActualHandleStepAcceptTime)
|
|
|
.Map(d => d.FdBackTimeBf, x => x.Order.ExpiredTime)
|
|
@@ -179,9 +178,9 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.EndName, x => x.ActualHandlerName)
|
|
|
.Map(d => d.SendTime, x => x.ActualHandleStepCreateTime)//CenterToOrgTime
|
|
|
.Map(d => d.FdBack, x => x.ActualOpinion)
|
|
|
- .Map(d => d.AreaCode, x => x.AreaCode)
|
|
|
- .Map(d => d.EndAreaCode, x => string.IsNullOrEmpty(x.ActualHandleOrgAreaCode) == false ? x.ActualHandleOrgAreaCode : x.AreaCode)
|
|
|
- .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.County) == false ? x.County : x.City)
|
|
|
+ .Map(d => d.AreaCode, x => x.AreaCode.Length > 6 ? x.AreaCode.Substring(0, 6) : x.AreaCode)
|
|
|
+ .Map(d => d.EndAreaCode, x => x.ActualHandleOrgAreaCode)
|
|
|
+ .Map(d => d.EndAreaName, x => string.IsNullOrEmpty(x.ActualHandleOrgAreaName) == false ? x.ActualHandleOrgAreaName : "宜宾市")
|
|
|
.Map(d => d.SignTime, x => x.ActualHandleStepAcceptTime)
|
|
|
.Map(d => d.FdBackTime, x => x.ActualHandleTime)
|
|
|
.Map(d => d.HandleTimeLong, x => x.HandleDurationWorkday)
|
|
@@ -198,7 +197,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.AuditSecondName, x => x.CreatorName)
|
|
|
.Map(d => d.PublishDate, x => x.CreationTime)
|
|
|
.Map(d => d.PublicOpinion, x => x.ArrangeOpinion)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
;
|
|
|
|
|
|
//通话记录
|
|
@@ -219,7 +218,7 @@ namespace DataSharing.Application.Mappers
|
|
|
//发起甄别
|
|
|
config.ForType<PublishScreenDto, ScreenCaseInfoSendInfo>()
|
|
|
.Map(d => d.CaseSerial, x => x.Order.ProvinceNo)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.ApplyName, x => x.Screen.CreatorName)
|
|
|
.Map(d => d.ApplyTime, x => x.Screen.CreationTime)
|
|
|
.Map(d => d.ApplyOuName, x => x.Screen.CreatorOrgName)
|
|
@@ -229,7 +228,7 @@ namespace DataSharing.Application.Mappers
|
|
|
//服务工单督办过程
|
|
|
config.ForType<PublishSuperviseDto, SendSuperviseProcessInfo>()
|
|
|
.Map(d => d.SuperviseSerial, x => x.Supervise.SuperviseSerial)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.ReplyName, x => x.Supervise.SignUser)
|
|
|
.Map(d => d.ReplyTime, x => x.Supervise.SignTime)
|
|
|
//.Map(d => d.ReplyOpinion, x => x.Supervise.ReplyContent)
|
|
@@ -238,7 +237,7 @@ namespace DataSharing.Application.Mappers
|
|
|
//服务工单督办结果
|
|
|
config.ForType<PublishSuperviseDto, SendSuperviseResultInfo>()
|
|
|
.Map(d => d.SuperviseSerial, x => x.Supervise.SuperviseSerial)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.EndName, x => x.Supervise.ReUser)
|
|
|
.Map(d => d.EndDate, x => x.Supervise.ReplyTime)
|
|
|
.Map(d => d.EndOpinion, x => x.Supervise.ReplyContent)
|
|
@@ -249,7 +248,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.RemindTime, x => x.Urge.CreationTime)
|
|
|
.Map(d => d.RemindName, x => x.Urge.CrUser)
|
|
|
.Map(d => d.RemindReasion, x => x.Urge.ApplyContent)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.CaseSerial, x => x.Order.ProvinceNo)
|
|
|
;
|
|
|
|
|
@@ -260,7 +259,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.DealDept, x => x.SendBack.CreatorOrgName)
|
|
|
.Map(d => d.DealName, x => x.SendBack.CreatorName)
|
|
|
.Map(d => d.CaseSerial, x => x.Order.ProvinceNo)
|
|
|
- .Map(d => d.AreaCode, x => x.Order.AreaCode)
|
|
|
+ .Map(d => d.AreaCode, x => x.Order.AreaCode.Length > 6 ? x.Order.AreaCode.Substring(0, 6) : x.Order.AreaCode)
|
|
|
.Map(d => d.ApplyTime, x => x.SendBack.CreationTime)
|
|
|
.Map(d => d.BackReason, x => string.IsNullOrEmpty(x.SendBack.AuditOpinion) ? x.SendBack.Content : x.SendBack.AuditOpinion)
|
|
|
;
|
|
@@ -590,6 +589,8 @@ namespace DataSharing.Application.Mappers
|
|
|
#region 企业服务
|
|
|
//企业数据推送
|
|
|
config.ForType<OrderDto, PushWorkOrder>()
|
|
|
+ .Map(d => d.EnterpriseCode, x => x.EnterpriseCode)
|
|
|
+ .Map(d => d.SpecialTeamCode, x => x.ZhuanBanCode)
|
|
|
.Map(d => d.WorkOrderTitle, x => x.Title)
|
|
|
.Map(d => d.WorkOrderNo, x => x.No)
|
|
|
.Map(d => d.AcceptTime, x => x.CreationTime)
|
|
@@ -600,7 +601,7 @@ namespace DataSharing.Application.Mappers
|
|
|
.Map(d => d.HotspotType, x => x.HotspotSpliceName)
|
|
|
.Map(d => d.AppealContent, x => x.Content)
|
|
|
.Map(d => d.UrgencyDegree, x => x.EmergencyLevel.ToString())
|
|
|
- .Map(d => d.RegionCode, x => x.AreaCode)
|
|
|
+ .Map(d => d.RegionCode, x => x.AreaCode.Length > 6 ? x.AreaCode.Substring(0, 6) : x.AreaCode)
|
|
|
.Map(d => d.ExpirationTime, x => x.ExpiredTime)
|
|
|
.Map(d => d.IncidentTime, x => x.IncidentTime)
|
|
|
;
|