This commit is contained in:
“wanyongkang”
2021-05-28 11:15:31 +08:00
parent 2496381c0a
commit 4e3185dc8f
2 changed files with 3 additions and 1 deletions

View File

@@ -526,6 +526,7 @@ namespace Home.Controllers
} else if (request.ExpiredDay==-6) {
exp = exp.And(m => m.EndTime < DateTime.Now);
}
exp = exp.And(m => m.PackageName != "测试卡");
}
if (request.ETime.HasValue && request.BTime.HasValue)

View File

@@ -165,7 +165,8 @@ namespace Hncore.Pass.Vpn.Controllers
expr = expr.And(m => Math.Ceiling((m.EndTime - DateTime.Now).Value.TotalDays) <= -4);
}else if (request.ExpirdDay > 0){
expr = expr.And(m => Math.Ceiling((m.EndTime - DateTime.Now).Value.TotalDays) <= request.ExpirdDay && m.EndTime > DateTime.Now);
}
}
expr = expr.And(m => m.PackageName != "测试卡");
// expr = expr.And(m => Math.Ceiling((m.EndTime - DateTime.Now).Value.TotalDays) == request.ExpirdDay);
}
var ret = await m_AccountService.PageDesc(request.PageIndex, request.PageSize, expr,true,m=>m.Id);