|
@@ -77,6 +77,7 @@ namespace MySystem
|
|
|
//统计当月下单名单
|
|
|
// List<int> checkIds = readdb.Users.Where(m => (m.ParentNav.Contains(",609,") || m.Id == 609) && m.AuthFlag == 1).ToList().Select(m => m.Id).ToList();
|
|
|
var orders = readdb.Orders.Where(m => m.PayDate >= check && m.Status > 0 && m.Sort == 0 && m.UserId > 1 && ProductIds.Contains(m.ProductId)).ToList();
|
|
|
+ function.WriteLog(orders.Count.ToString(), "推荐王创客入库");
|
|
|
List<int> uids = orders.Select(m => m.UserId).Distinct().ToList();
|
|
|
foreach(int uid in uids)
|
|
|
{
|
|
@@ -96,6 +97,7 @@ namespace MySystem
|
|
|
Kind = 1,
|
|
|
Op = false,
|
|
|
});
|
|
|
+ function.WriteLog(user.Id.ToString(), "推荐王创客入库");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -153,6 +155,7 @@ namespace MySystem
|
|
|
Kind = 2,
|
|
|
Op = false,
|
|
|
});
|
|
|
+ function.WriteLog(puser.Id.ToString() + "-p", "推荐王创客入库");
|
|
|
}
|
|
|
}
|
|
|
}
|