|
@@ -57,7 +57,7 @@ namespace MySystem
|
|
|
ids += idsDr["Id"].ToString() + ",";
|
|
|
startId = idsDr["Id"].ToString();
|
|
|
}
|
|
|
- DataTable selfDt = OtherMySqlConn.dtable("select UserId,MerchantId,PayMode,DATE_FORMAT(CreateDate,'%Y%m%d'),sum(PayMoney),count(Id) from TradeRecord where Id in (" + ids.TrimEnd(',') + ") group by UserId,MerchantId,PayMode,DATE_FORMAT(CreateDate,'%Y%m%d')");
|
|
|
+ DataTable selfDt = OtherMySqlConn.dtable("select UserId,MerchantId,PayMode,DATE_FORMAT(CreateDate,'%Y%m%d'),sum(PayMoney),count(Id) from ConsumerOrders where Id in (" + ids.TrimEnd(',') + ") group by UserId,MerchantId,PayMode,DATE_FORMAT(CreateDate,'%Y%m%d')");
|
|
|
if (selfDt.Rows.Count > 0)
|
|
|
{
|
|
|
function.WriteLog("统计人数:" + selfDt.Rows.Count + "\n\n", "统计商户和创客交易额日志");
|