Dun.Jason 1 년 전
부모
커밋
8cbcb9e66c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/Hotline.Share/Dtos/TrCallCenter/TrTelDao.cs

+ 8 - 0
src/Hotline.Share/Dtos/TrCallCenter/TrTelDao.cs

@@ -180,6 +180,14 @@ namespace Hotline.Share.Dtos.TrCallCenter
         public DateTime StartTime { get; set; }
 
         public bool? IsRest { get; set; }
+
+        public int Second => CalcSecond();
+
+
+        public int CalcSecond()
+        {
+            return (int)(DateTime.Now - StartTime).TotalSeconds;
+        }
     }