Sfoglia il codice sorgente

自贡特提申请 特殊处理

田爽 6 mesi fa
parent
commit
19fcb4ec13
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/Hotline.Api/Controllers/OrderController.cs

+ 5 - 0
src/Hotline.Api/Controllers/OrderController.cs

@@ -4744,6 +4744,11 @@ public class OrderController : BaseController
             throw UserFriendlyException.SameMessage("该工单存在正在审核中的退回,不能办理");
         }
 
+        if (_appOptions.Value.IsZiGong &&  string.IsNullOrEmpty(dto.Cause))
+        {
+            dto.Cause = dto.Reason;
+        }
+
         var order = await _orderRepository
             .Queryable()
             .Includes(d => d.Workflow)