Эх сурвалжийг харах

调整推荐王执行逻辑

lcl 1 жил өмнө
parent
commit
ad098369f6

+ 1 - 1
AppStart/Helper/RecommandKingHelper.cs

@@ -57,7 +57,7 @@ namespace MySystem
             Historys.Add(174506);
             Historys.Add(127023);
             DateTime check = DateTime.Parse("2023-10-01 00:00:00");
-            DateTime start = DateTime.Parse(TradeMonth + "-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);
             CustomerSqlConn.op("delete from RecommendDirectUser where TradeMonth='" + TradeMonth + "'", MysqlConn.SqlConnStr);
             List<int> ProductIds = new List<int>();