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;
+        }
     }