Browse Source

激活奖励发放逻辑调整

lcl 1 year ago
parent
commit
c42cc31c91
1 changed files with 15 additions and 1 deletions
  1. 15 1
      AppStart/Helper/StatService.cs

+ 15 - 1
AppStart/Helper/StatService.cs

@@ -351,6 +351,10 @@ namespace MySystem
             BrandIds.Add(19);
             BrandIds.Add(19);
             BrandIds.Add(20);
             BrandIds.Add(20);
             BrandIds.Add(21);
             BrandIds.Add(21);
+            BrandIds.Add(23);
+            BrandIds.Add(24);
+            BrandIds.Add(25);
+            BrandIds.Add(26);
             WebCMSEntities db = new WebCMSEntities();
             WebCMSEntities db = new WebCMSEntities();
             DateTime yesterday = DateTime.Now.AddDays(-1);
             DateTime yesterday = DateTime.Now.AddDays(-1);
             DateTime today = DateTime.Now.AddMinutes(-10);
             DateTime today = DateTime.Now.AddMinutes(-10);
@@ -456,7 +460,17 @@ namespace MySystem
             WebCMSEntities db = new WebCMSEntities();
             WebCMSEntities db = new WebCMSEntities();
             DateTime yesterday = DateTime.Now.AddDays(-31);
             DateTime yesterday = DateTime.Now.AddDays(-31);
             DateTime today = DateTime.Now.AddMinutes(-10);
             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");
+            List<int> BrandIds = new List<int>();
+            BrandIds.Add(12);
+            BrandIds.Add(13);
+            BrandIds.Add(14);
+            BrandIds.Add(15);
+            BrandIds.Add(16);
+            BrandIds.Add(23);
+            BrandIds.Add(24);
+            BrandIds.Add(25);
+            BrandIds.Add(26);
+            IQueryable<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && (string.IsNullOrEmpty(m.SeoKeyword) || m.SeoKeyword == "0") && m.CreditTrade >= 5000 && !BrandIds.Contains(m.BrandId) && m.Detail != "1");
             if (posid > 0)
             if (posid > 0)
             {
             {
                 posList = posList.Where(m => m.Id == posid);
                 posList = posList.Where(m => m.Id == posid);