田爽 1 year ago
parent
commit
af13bfe15d
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/Hotline.Api/Controllers/OrderController.cs

+ 6 - 2
src/Hotline.Api/Controllers/OrderController.cs

@@ -3255,8 +3255,12 @@ public class OrderController : BaseController
                 NextHandlers = dto.NextHandlers,
                 Opinion = dto.Cause
             };
-            //if (dto.AlterTime)
-            //    recall.External = new External { TimeLimit = dto.TimeLimit, TimeLimitUnit = ETimeType.WorkDay };
+            //if (dto.AlterTime) 
+            //{
+
+            //}
+            var time = _timeLimitDomainService.CalcEndTime(DateTime.Now, order.AcceptTypeCode);
+			recall.External = new External { TimeLimit = time.Count, TimeLimitUnit = ETimeType.WorkDay };
             //if (dto.Files.Any()) recall.Files = dto.Files;
 
             //todo 特提重办,按审批通过时间依据中心派至部门的规则计算期满时间,更新order