|
|
@@ -181,6 +181,7 @@ namespace MySystem
|
|
|
{
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
DateTime yesterday = DateTime.Now.AddDays(-30);
|
|
|
+ DateTime today = DateTime.Now.AddMinutes(-5);
|
|
|
IQueryable<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && m.BrandId == 14 && m.CardType > 0 && m.Detail != "1");
|
|
|
if (posid > 0)
|
|
|
{
|
|
|
@@ -188,7 +189,7 @@ namespace MySystem
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- posList = posList.Where(m => m.ActivationTime >= yesterday);
|
|
|
+ posList = posList.Where(m => m.ActivationTime >= yesterday && m.ActivationTime < today);
|
|
|
}
|
|
|
foreach (PosMachinesTwo pos in posList.ToList())
|
|
|
{
|
|
|
@@ -447,7 +448,7 @@ namespace MySystem
|
|
|
public void activePrizeWithoutDeposit(int posid = 0)
|
|
|
{
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
- DateTime yesterday = DateTime.Now.AddDays(-10);
|
|
|
+ DateTime yesterday = DateTime.Now.AddDays(-31);
|
|
|
DateTime today = DateTime.Now.AddMinutes(-10);
|
|
|
IQueryable<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && (string.IsNullOrEmpty(m.SeoKeyword) || m.SeoKeyword == "0") && m.CreditTrade >= 5000 && m.BrandId != 12 && m.BrandId != 13 && m.BrandId != 14 && m.BrandId != 15 && m.BrandId != 16 && m.Detail != "1");
|
|
|
if (posid > 0)
|