فهرست منبع

调整统计顺序

DuGuYang 1 سال پیش
والد
کامیت
1c547cf441
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      Areas/Api/Controllers/v1/MainServer/MerchantInfoController.cs

+ 4 - 2
Areas/Api/Controllers/v1/MainServer/MerchantInfoController.cs

@@ -151,19 +151,21 @@ namespace MySystem.Areas.Api.Controllers.v1
             }
             if (Kind > 0)
             {
-                query = query.Where(m => m.QueryCount == Kind);
+                query = query.Where(m => m.BindStatus == Kind);
             }
             if (ActiveStatus > 0)
             {
                 if (ActiveStatus == 2) ActiveStatus = 0;
                 query = query.Where(m => m.ActivationStatus == ActiveStatus);
             }
+            int TotalCount = query.Count();
             if (IsAct > 0)
             {
+                IsActNum = query.Count(m => m.IsAct == 1);
+                UnActNum = query.Count(m => m.IsAct == 0);
                 if (IsAct == 2) IsAct = 0;
                 query = query.Where(m => m.IsAct == IsAct);
             }
-            int TotalCount = query.Count();
             int ActCount = query.Count(m => m.ActivationDate == today);
             int ProductCount = query.Count();
             int ProductActCount = query.Count(m => m.ActivationStatus == 1);