浏览代码

调整统计顺序

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);