瀏覽代碼

任务 314 关于修改回访结果后回访人更新的问题

tangjiang 2 月之前
父節點
當前提交
21ec088331
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/Hotline.Application/Orders/OrderApplication.cs

+ 10 - 1
src/Hotline.Application/Orders/OrderApplication.cs

@@ -1258,7 +1258,16 @@ public class OrderApplication : IOrderApplication, IScopeDependency
 
         visit.IsPutThrough = dto.IsPutThrough;
         visit.AgainState = dto.IsAgain ? EAgainState.NeedAgain : EAgainState.NoAgain;
-        visit.EmployeeId = _sessionContextProvider.SessionContext.UserId;
+        //任务 314 关于修改回访结果后回访人更新的问题
+        if (_appOptions.Value.IsZiGong == true)
+        {
+            if (string.IsNullOrEmpty(visit.EmployeeId))
+                visit.EmployeeId = _sessionContextProvider.SessionContext.UserId;
+        }
+        else
+        {
+            visit.EmployeeId = _sessionContextProvider.SessionContext.UserId;
+        }
         visit.CallId = dto.CallId;
         if (first != null)
         {