Dun.Jason 1 ano atrás
pai
commit
8cbcb9e66c
1 arquivos alterados com 8 adições e 0 exclusões
  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;
+        }
     }