Selaa lähdekoodia

调整统计顺序

DuGuYang 1 vuosi sitten
vanhempi
commit
1c547cf441
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  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);