TANG JIANG 1 year ago
parent
commit
66576b3221
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/DataSharing.Application/Receivers/ProvinceReceiver.cs

+ 2 - 3
src/DataSharing.Application/Receivers/ProvinceReceiver.cs

@@ -390,7 +390,7 @@ namespace DataSharing.Application.Receivers
             if (pushdto.TrCallRecordDto is not null)
             if (pushdto.TrCallRecordDto is not null)
             {
             {
                 var dataCall = _mapper.Map<SubmitCaseRecordInfo>(pushdto.TrCallRecordDto);
                 var dataCall = _mapper.Map<SubmitCaseRecordInfo>(pushdto.TrCallRecordDto);
-                dataCall.AreaCode = dto.AreaCode;
+                dataCall.AreaCode = dto.AreaCode.Length > 6 ? dto.AreaCode.Substring(0, 6) : dto.AreaCode;
                 dataCall.CaseSerial = dto.ProvinceNo;
                 dataCall.CaseSerial = dto.ProvinceNo;
 
 
                 //处理通话记录时间
                 //处理通话记录时间
@@ -612,7 +612,7 @@ namespace DataSharing.Application.Receivers
             if (dto.TrCallRecordDto is not null)
             if (dto.TrCallRecordDto is not null)
             {
             {
                 var dataCall = _mapper.Map<SubmitCaseRecordInfo>(dto.TrCallRecordDto);
                 var dataCall = _mapper.Map<SubmitCaseRecordInfo>(dto.TrCallRecordDto);
-                dataCall.AreaCode = dto.Order.AreaCode;
+                dataCall.AreaCode = dto.Order.AreaCode.Length > 6 ? dto.Order.AreaCode.Substring(0, 6) : dto.Order.AreaCode;
                 dataCall.CaseSerial = dto.Order.ProvinceNo;
                 dataCall.CaseSerial = dto.Order.ProvinceNo;
 
 
                 //处理通话记录时间
                 //处理通话记录时间
@@ -694,7 +694,6 @@ namespace DataSharing.Application.Receivers
         [CapSubscribe(Hotline.Share.Mq.EventNames.HotlineCallBye)]
         [CapSubscribe(Hotline.Share.Mq.EventNames.HotlineCallBye)]
         public async Task SubmitCaseRecordAsync(PublishCallRecrodDto dto, CancellationToken cancellationToken)
         public async Task SubmitCaseRecordAsync(PublishCallRecrodDto dto, CancellationToken cancellationToken)
         {
         {
-
             //验证是否需要推送未接数据
             //验证是否需要推送未接数据
             if (dto != null && dto.TrCallRecordDto != null && dto.TrCallRecordDto.OnState == EOnState.NoOn && dto.Order == null)
             if (dto != null && dto.TrCallRecordDto != null && dto.TrCallRecordDto.OnState == EOnState.NoOn && dto.Order == null)
             {
             {