Parcourir la source

调整推荐王执行逻辑

lcl il y a 8 mois
Parent
commit
ad098369f6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      AppStart/Helper/RecommandKingHelper.cs

+ 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>();