tangjiang 7 сар өмнө
parent
commit
c80df40a28

+ 2 - 2
src/DataSharing.Application/Mappers/MapperConfigs.cs

@@ -218,7 +218,7 @@ namespace DataSharing.Application.Mappers
             //通话记录
             config.ForType<CallNativeDto, SubmitCaseRecordInfo>()
             .Map(d => d.PhoneNumber, x => x.FromNo)
-            .Map(d => d.PhoneStatus, x => x.AnsweredTime != null ? "10" : "20")
+            .Map(d => d.PhoneStatus, x => x.AnsweredTime.HasValue ? "10" : "20")
             .Map(d => d.IsPhoneCall, x => x.Direction == ECallDirection.Out ? "1" : "0")
             .Map(d => d.CallStart, x => x.AnsweredTime)
             .Map(d => d.CallEnd, x => x.EndTime)
@@ -661,7 +661,7 @@ namespace DataSharing.Application.Mappers
             .Map(d => d.Duration, x => x.Duration)
             .Map(d => d.RingTimes, x => x.RingDuration)
             .Map(d => d.QueueTims, x => x.WaitDuration)
-            .Map(d => d.OnState, x => x.AnsweredTime != null ? "1" : "2")
+            .Map(d => d.OnState, x => x.AnsweredTime.HasValue ? "1" : "2")
             .Map(d => d.RecordingFileUrl, x => x.AudioFile)
             ;