|
@@ -345,10 +345,16 @@ namespace MySystem
|
|
|
// 3. 前一天的激活记录,根据创客类型,如果是商户型创客,则激活奖励的起始人从此人上级计算。如果不是,则从此人开始计算
|
|
|
public void dosomething3(int posid = 0)
|
|
|
{
|
|
|
+ List<int> BrandIds = new List<int>();
|
|
|
+ BrandIds.Add(14);
|
|
|
+ BrandIds.Add(18);
|
|
|
+ BrandIds.Add(19);
|
|
|
+ BrandIds.Add(20);
|
|
|
+ BrandIds.Add(21);
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
DateTime yesterday = DateTime.Now.AddDays(-1);
|
|
|
DateTime today = DateTime.Now.AddMinutes(-10);
|
|
|
- IQueryable<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && !string.IsNullOrEmpty(m.SeoKeyword) && m.SeoKeyword != "" && m.SeoKeyword != "0" && m.Detail != "1" && m.BrandId != 14);
|
|
|
+ IQueryable<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && !string.IsNullOrEmpty(m.SeoKeyword) && m.SeoKeyword != "" && m.SeoKeyword != "0" && m.Detail != "1" && !BrandIds.Contains(m.BrandId));
|
|
|
if (posid > 0)
|
|
|
{
|
|
|
posList = posList.Where(m => m.Id == posid);
|