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