|
@@ -35,15 +35,21 @@ namespace MySystem
|
|
|
}
|
|
|
public void Recommend()
|
|
|
{
|
|
|
+ string today = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
+ string checkFlag = function.ReadInstance("/RecommandKing/" + today + ".txt");
|
|
|
+ if(!string.IsNullOrEmpty(checkFlag))
|
|
|
+ {
|
|
|
+ function.WritePage("/RecommandKing/", today + ".txt", DateTime.Now.ToString());
|
|
|
+ }
|
|
|
List<int> Historys = new List<int>();
|
|
|
Historys.Add(565);
|
|
|
Historys.Add(139473);
|
|
|
Historys.Add(173790);
|
|
|
Historys.Add(174506);
|
|
|
+ string TradeMonth = DateTime.Now.AddMonths(-0).ToString("yyyyMM");
|
|
|
DateTime check = DateTime.Parse("2023-10-01 00:00:00");
|
|
|
DateTime start = DateTime.Parse(DateTime.Now.AddMonths(-0).ToString("yyyy-MM") + "-01 00:00:00");
|
|
|
DateTime end = start.AddMonths(1);
|
|
|
- string TradeMonth = DateTime.Now.AddMonths(-0).ToString("yyyyMM");
|
|
|
CustomerSqlConn.op("delete from RecommendDirectUser where TradeMonth='" + TradeMonth + "'", MysqlConn.SqlConnStr);
|
|
|
string PreTradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
|
|
|
List<int> ProductIds = new List<int>();
|