Quellcode durchsuchen

发放分润要累计收益

lichunlei vor 3 Jahren
Ursprung
Commit
74fd1a3578
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      AppStart/Helper/SycnProfitServiceV3.cs

+ 2 - 2
AppStart/Helper/SycnProfitServiceV3.cs

@@ -245,7 +245,7 @@ namespace MySystem
                 function.WriteLog(index.ToString(), "同步补贴数据");
                 function.WriteLog(index.ToString(), "同步补贴数据");
             }
             }
             OtherMySqlConn.dtable("update HelpProfitReward set Status=2 where Status=1 and TradeMonth='" + month + "'");
             OtherMySqlConn.dtable("update HelpProfitReward set Status=2 where Status=1 and TradeMonth='" + month + "'");
-                
+            
             db.Dispose();
             db.Dispose();
         }
         }
 
 
@@ -267,7 +267,7 @@ namespace MySystem
         {
         {
             string conn = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
             string conn = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
 
 
-            CustomerSqlConn.op("update UserAccount a set BalanceAmount=BalanceAmount+(select ProfitRate from UserProfit where Id=a.Id) where Id in (select Id from UserProfit)", conn);
+            CustomerSqlConn.op("update UserAccount a set BalanceAmount=BalanceAmount+(select ProfitRate from UserProfit where Id=a.Id),TotalAmount=TotalAmount+(select ProfitRate from UserProfit where Id=a.Id) where Id in (select Id from UserProfit)", conn);
 
 
             string Month = DateTime.Now.AddDays(-90).ToString("yyyy-MM");
             string Month = DateTime.Now.AddDays(-90).ToString("yyyy-MM");