浏览代码

领导人达标列表剔除注销人员信息

lcl 8 月之前
父节点
当前提交
8498f097e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AppStart/Helper/LeaderCompPrizeHelper.cs

+ 1 - 1
AppStart/Helper/LeaderCompPrizeHelper.cs

@@ -85,7 +85,7 @@ namespace MySystem
                 string sql = "";
                 int rownum = 0;
                 int num = 0;
-                DataTable dt = CustomerSqlConn.dtable("select UserId,sum(HelpNonDirectTradeAmt + NotHelpNonDirectTradeAmt + ProfitNonDirectTradeAmt + HelpNonDirectDebitTradeAmt + NotHelpNonDirectDebitTradeAmt + ProfitNonDirectDebitTradeAmt) Amt from TradeDaySummary where Id>=15055757 and TradeMonth='" + month + "' and SeoTitle='team' and UserId>0 group by UserId", MysqlConn.ReadSqlConnStr);
+                DataTable dt = CustomerSqlConn.dtable("select UserId,sum(HelpNonDirectTradeAmt + NotHelpNonDirectTradeAmt + ProfitNonDirectTradeAmt + HelpNonDirectDebitTradeAmt + NotHelpNonDirectDebitTradeAmt + ProfitNonDirectDebitTradeAmt) Amt from TradeDaySummary where Id>=15055757 and TradeMonth='" + month + "' and SeoTitle='team' and UserId>0 and UserId not in (select Id from Users where Status<0) group by UserId", MysqlConn.ReadSqlConnStr);
                 function.WriteLog("交易数:" + dt.Rows.Count.ToString(), "领导人达标奖励日志");
                 foreach(DataRow dr in dt.Rows)
                 {