lichunlei 2 лет назад
Родитель
Сommit
4eb0fc6c87
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      AppStart/Helper/Profit/ProfitHelper.cs
  2. 1 1
      AppStart/Helper/Profit/ProfitHelperV2.cs
  3. 1 1
      Startup.cs

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

@@ -1947,7 +1947,7 @@ namespace MySystem
                 DataTable dt = new DataTable();
                 DataTable dt = new DataTable();
                 if (BankCardType == 1)
                 if (BankCardType == 1)
                 {
                 {
-                    dt = ProfitHelperV2.Instance.GetDataTable("select SnNo,UserId,QrPayFlag,MerHelpFlag,TradeAmount TradeAmount from TradeRecord" + Month + " where BrandId=" + BrandId);
+                    dt = ProfitHelperV2.Instance.GetDataTable("select SnNo,UserId,QrPayFlag,MerHelpFlag,TradeAmount TradeAmount from TradeRecord" + Month + " where BrandId=" + BrandId + LimitString);
                 }
                 }
                 function.WriteLog("记录条数:" + dt.Rows.Count.ToString(), "老规则分润日志");
                 function.WriteLog("记录条数:" + dt.Rows.Count.ToString(), "老规则分润日志");
                 foreach (DataRow dr in dt.Rows)
                 foreach (DataRow dr in dt.Rows)

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

@@ -398,7 +398,7 @@ namespace MySystem
                                 decimal HelpDirectDebitCapTradeAmt = decimal.Parse(dr[4].ToString()); //借记卡扶持期封顶交易额
                                 decimal HelpDirectDebitCapTradeAmt = decimal.Parse(dr[4].ToString()); //借记卡扶持期封顶交易额
                                 decimal NotHelpDirectDebitCapTradeAmt = decimal.Parse(dr[5].ToString()); //借记卡稳定期封顶交易额
                                 decimal NotHelpDirectDebitCapTradeAmt = decimal.Parse(dr[5].ToString()); //借记卡稳定期封顶交易额
                                 int HelpDirectDebitCapNum = int.Parse(dr[6].ToString().Split('.')[0]); //借记卡扶持期封顶交易笔数
                                 int HelpDirectDebitCapNum = int.Parse(dr[6].ToString().Split('.')[0]); //借记卡扶持期封顶交易笔数
-                                int NotHelpDirectDebitCapNum = int.Parse(dr[7].ToString()); //借记卡稳定期封顶交易笔数
+                                int NotHelpDirectDebitCapNum = int.Parse(dr[7].ToString().Split('.')[0]); //借记卡稳定期封顶交易笔数
                                 int UserLevel = selfUser.UserLevel; //当前会员等级
                                 int UserLevel = selfUser.UserLevel; //当前会员等级
                                 decimal getLevelProfit = (HelpDirectDebitTradeAmt + NotHelpDirectDebitTradeAmt - HelpDirectDebitCapTradeAmt - NotHelpDirectDebitCapTradeAmt) * 0.0006M + HelpDirectDebitCapNum + NotHelpDirectDebitCapNum;
                                 decimal getLevelProfit = (HelpDirectDebitTradeAmt + NotHelpDirectDebitTradeAmt - HelpDirectDebitCapTradeAmt - NotHelpDirectDebitCapTradeAmt) * 0.0006M + HelpDirectDebitCapNum + NotHelpDirectDebitCapNum;
                                 result.Add(new ProfitResult()
                                 result.Add(new ProfitResult()

+ 1 - 1
Startup.cs

@@ -204,7 +204,7 @@ namespace MySystem
             // StoreApplyHelper.Instance.Start(); // 每月1号重置仓库额度
             // StoreApplyHelper.Instance.Start(); // 每月1号重置仓库额度
             // StoreApplyHelper.Instance.StartEverTime();
             // StoreApplyHelper.Instance.StartEverTime();
             // StatService.Instance.StatUserLevel(); //升级并分润
             // StatService.Instance.StatUserLevel(); //升级并分润
-            ProfitHelperV2.Instance.StatProfit();
+            ProfitHelper.Instance.StatProfit();
             //必须打开的
             //必须打开的
 
 
             // HelpProfitHelper.Instance.Start(); //助利宝分润
             // HelpProfitHelper.Instance.Start(); //助利宝分润