Browse Source

Merge branch 'refactor/delay_review' into test

xf 2 tuần trước cách đây
mục cha
commit
5c7cb734da
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      src/Hotline.Api/Controllers/OrderApi/OrderDelayController.cs

+ 10 - 0
src/Hotline.Api/Controllers/OrderApi/OrderDelayController.cs

@@ -34,6 +34,16 @@ public class OrderDelayController : BaseController
         return list;
     }
 
+    /// <summary>
+    /// 延期待审批总量
+    /// </summary>
+    /// <param name="dto"></param>
+    /// <returns></returns>
+    [HttpGet("waited/count")]
+    public Task<int> WaitedCount([FromQuery] DelayListDto dto) =>
+        _orderDelayApplication.QueryWaited(dto)
+            .CountAsync(HttpContext.RequestAborted);
+
     /// <summary>
     /// 延期审核
     /// </summary>