Prechádzať zdrojové kódy

入账前先创建账户

lichunlei 3 rokov pred
rodič
commit
83c16f3caf
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      AppStart/Helper/SycnProfitServiceV3.cs

+ 2 - 0
AppStart/Helper/SycnProfitServiceV3.cs

@@ -267,6 +267,8 @@ namespace MySystem
         {
         {
             string conn = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
             string conn = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
 
 
+            CustomerSqlConn.op("insert into UserAccount (Id,UserId) select Id,Id from UserProfit where Id not in (select Id from UserAccount)", 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);
             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");