dss 2 anos atrás
pai
commit
f4d5e0382b

+ 1 - 1
src/CallCenter.Api/Controllers/HomeController.cs

@@ -63,7 +63,7 @@ public class HomeController : BaseController
     {
         var db = _uow.Db;
         db.DbMaintenance.CreateDatabase();
-        db.CodeFirst.InitTables<Blacklist>();
+        db.CodeFirst.InitTables<Call>();
         return Task.CompletedTask;
     }
 }

+ 3 - 2
src/CallCenter.Api/appsettings.json

@@ -54,13 +54,14 @@
   "WorkTimeSettings": {
     "LineSetting": [
       {
-        "NumNo": "12345",
+        //"NumNo": "12345",
+        "NumNo": "3495",
         "MorningBegin": "00:00",
         "MorningEnd": "12:00",
         "AfterBegin": "12:00",
         "AfterEnd": "23:59",
         "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
-        "WorkCategory": "",
+        "WorkCategory": "08dae7da-ed9f-46ea-83ff-2818686d264e",
         "RestCategory": "",
         "WorkToGroup": "600",
         "RestToGroup": "600"

+ 2 - 1
src/CallCenter/Caches/CallCacheManager.cs

@@ -1,9 +1,10 @@
 using CallCenter.Calls;
 using XF.Domain.Cache;
+using XF.Domain.Dependency;
 
 namespace CallCenter.Caches
 {
-    public class CallCacheManager : ICallCacheManager
+    public class CallCacheManager : ICallCacheManager, IScopeDependency
     {
         private readonly ITypedCache<IReadOnlyList<Call>> _cacheCall;
         private const string CallKey = "CallQueue";

+ 6 - 0
src/CallCenter/Calls/Call.cs

@@ -119,31 +119,37 @@ namespace CallCenter.Calls
         /// <summary>
         /// 进入IVR时间
         /// </summary>
+        [SugarColumn(ColumnDescription ="进入IVR时间")]
         public DateTime? InIvrTime { get; set; }
 
         /// <summary>
         /// 离开IVR时间(进入队列时间)
         /// </summary>
+        [SugarColumn(ColumnDescription = "离开IVR时间(进入队列时间)")]
         public DateTime? OutIvrTime { get; set; }
 
         /// <summary>
         /// 进入队列时间
         /// </summary>
+        [SugarColumn(ColumnDescription ="进入队列时间")]
         public DateTime? InGroupTime { get; set; }
 
         /// <summary>
         /// 离开队列时间(振铃时间)
         /// </summary>
+        [SugarColumn(ColumnDescription ="离开队列时间(振铃时间)")]
         public DateTime? OutGroupTime { get; set; }
 
         /// <summary>
         /// 进入坐席时间(振铃时间)
         /// </summary>
+        [SugarColumn(ColumnDescription = "进入坐席时间(振铃时间)")]
         public DateTime? InSeaTime { get; set; }
 
         /// <summary>
         /// 离开坐席时间(应答时间)
         /// </summary>
+        [SugarColumn(ColumnDescription ="离开坐席时间(应答时间)")]
         public DateTime? ConnSeaTime { get; set; }
     }
 }