Explorar o código

修改分润起始时间

lichunlei %!s(int64=4) %!d(string=hai) anos
pai
achega
c990735d6f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AppStart/Helper/Profit/ProfitHelperV2.cs

+ 1 - 1
AppStart/Helper/Profit/ProfitHelperV2.cs

@@ -35,7 +35,7 @@ namespace MySystem
         }
         public void StatProfitDo()
         {
-            DateTime check = DateTime.Parse(DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd") + " 00:00:00");
+            DateTime check = DateTime.Parse(DateTime.Now.AddMonths(-1).ToString("yyyy-MM") + "-01 00:00:00");
             DateTime end = DateTime.Parse(check.AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd") + " 00:00:00");
             while (check <= end)
             {