|
@@ -39,7 +39,7 @@ public class ResetSmallStoreHelper
|
|
if(string.IsNullOrEmpty(check))
|
|
if(string.IsNullOrEmpty(check))
|
|
{
|
|
{
|
|
function.WritePage("/ResetSmallStore/", Month + ".txt", DateTime.Now.ToString());
|
|
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, "计算小分仓额度日志");
|
|
function.WriteLog("总数" + dt.Rows.Count, "计算小分仓额度日志");
|
|
int index = 0;
|
|
int index = 0;
|
|
foreach(DataRow dr in dt.Rows)
|
|
foreach(DataRow dr in dt.Rows)
|