|
@@ -39,9 +39,11 @@ namespace MySystem
|
|
|
{
|
|
|
Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 1);
|
|
|
Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 2);
|
|
|
+ // Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 3);
|
|
|
}
|
|
|
Recommend(DateTime.Now.ToString("yyyyMM"), 1);
|
|
|
Recommend(DateTime.Now.ToString("yyyyMM"), 2);
|
|
|
+ // Recommend(DateTime.Now.ToString("yyyyMM"), 3);
|
|
|
}
|
|
|
}
|
|
|
Thread.Sleep(600000);
|
|
@@ -51,14 +53,15 @@ namespace MySystem
|
|
|
{
|
|
|
int CheckCount = 0;
|
|
|
if(Kind == 1) CheckCount = 40;
|
|
|
- if(Kind == 2) CheckCount = 50;
|
|
|
+ if(Kind >= 2) CheckCount = 50;
|
|
|
List<int> ReduceUserId = new List<int>();
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
List<RecommendDirectUser> list = new List<RecommendDirectUser>();
|
|
|
List<int> Historys = new List<int>();
|
|
|
- if(Kind == 1)
|
|
|
+
|
|
|
+ if(Kind < 3)
|
|
|
{
|
|
|
- Historys = db.RecommendDirectUser.Where(m => m.QueryCount >= CheckCount && m.TradeMonth != TradeMonth && m.Kind == Kind).ToList().Select(m => m.UserId).ToList();
|
|
|
+ Historys = db.RecommendDirectUser.Where(m => m.QueryCount >= CheckCount && m.TradeMonth != TradeMonth && m.Kind == 1).ToList().Select(m => m.UserId).ToList();
|
|
|
Historys.Add(565);
|
|
|
Historys.Add(139473);
|
|
|
Historys.Add(173790);
|
|
@@ -139,6 +142,11 @@ namespace MySystem
|
|
|
Historys.Add(229240);
|
|
|
Historys.Add(150696);
|
|
|
}
|
|
|
+ else if(Kind == 3)
|
|
|
+ {
|
|
|
+ Historys = db.RecommendDirectUser.Where(m => m.QueryCount >= CheckCount && m.TradeMonth == TradeMonth && m.Kind == 1).ToList().Select(m => m.UserId).ToList();
|
|
|
+ }
|
|
|
+
|
|
|
DateTime check = DateTime.Parse("2023-10-01 00:00:00");
|
|
|
DateTime start = DateTime.Parse(TradeMonth.Substring(0, 4) + "-" + TradeMonth.Substring(4, 2) + "-01 00:00:00");
|
|
|
DateTime end = start.AddMonths(1);
|
|
@@ -456,8 +464,9 @@ namespace MySystem
|
|
|
}
|
|
|
public void StartTestFor()
|
|
|
{
|
|
|
- Recommend("202410", 1);
|
|
|
+ // Recommend("202410", 1);
|
|
|
Recommend("202410", 2);
|
|
|
+ Recommend("202410", 3);
|
|
|
}
|
|
|
}
|
|
|
}
|