Dun.Jason 1 tháng trước cách đây
mục cha
commit
2c6fdced11

+ 1 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -4443,7 +4443,7 @@ public class OrderController : BaseController
         await _orderApplication.AddKnowledgeQuote(order.Id, order.Title, order.No, order.KnowledgeQuote, HttpContext.RequestAborted);
         if (bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsEarly).SettingValue[0]))
         {
-            if (order.IsUrgent && intersect!=null && intersect.Count>0)
+            if (order.IsSensitiveWorkOrders && intersect!=null && intersect.Count>0)
             {
                 //坐席预警
                 await _orderApplication.SeatEarly(order.Id, intersect, dto.SeatEarlyWarningLevelValue, dto.SeatEarlyWarningLevelName, dto.SeatEarlyWarningTypeValue, dto.SeatEarlyWarningTypeName, HttpContext.RequestAborted);

+ 2 - 1
src/Hotline/Early/OrderEarlyWarning.cs

@@ -29,12 +29,13 @@ namespace Hotline.Early
         /// <summary>
         /// 派单选择预警
         /// </summary>
+        [SugarColumn(ColumnDataType = "json", IsJson = true, IsNullable = true)]
         public List<EarlyWarningSetting>? DispatchEarlyWarning { get; set; }
 
         /// <summary>
         /// 可选择预警设置
         /// </summary>
-        
+        [SugarColumn(ColumnDataType = "json", IsJson = true, IsNullable = true)]
         public List<EarlyWarningSetting>? CanChooseEarlyWarning { get; set; }
     }
 }