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

修复小分仓额度重置bug

lichunlei 2 жил өмнө
parent
commit
ba8141524d

+ 1 - 1
AppStart/Timer/ResetSmallStoreHelper.cs

@@ -39,7 +39,7 @@ public class ResetSmallStoreHelper
                     if(string.IsNullOrEmpty(check))
                     {
                         function.WritePage("/ResetSmallStore/", Month + ".txt", DateTime.Now.ToString());
-                        DataTable dt = OtherMySqlConn.dtable("select UserId,sum(ProfitAmount) from ProfitRecord where SeoTitle='" + Month + "' group by UserId");
+                        DataTable dt = OtherMySqlConn.dtable("select UserId,sum(CreditTradeProfit+DebitNonTradeCapProfit+DebitTradeCapProfit) from ProfitRewardRecord where UserId>0 and TradeMonth='" + Month + "' group by UserId order by UserId");
                         function.WriteLog("总数" + dt.Rows.Count, "计算小分仓额度日志");
                         int index = 0;
                         foreach(DataRow dr in dt.Rows)