|
@@ -298,8 +298,8 @@ namespace MySystem
|
|
try
|
|
try
|
|
{
|
|
{
|
|
string start = "2023-09-01 00:00:00";
|
|
string start = "2023-09-01 00:00:00";
|
|
- string end = DateTime.Now.ToString("2023-09-22 11:38:00");
|
|
|
|
- DataTable selfDt = CustomerSqlConn.dtable("select UserId,MerchantId,SnNo,PayMode,IsAct,DATE_FORMAT(CreateDate,'%Y%m%d'),sum(PayMoney),count(Id),sum(MaxDivi),sum(MerchantActualAmount) from ConsumerOrders where MerchantId>0 and CreateDate>='" + start + "' and CreateDate<'" + end + "' group by UserId,MerchantId,SnNo,PayMode,IsAct,DATE_FORMAT(CreateDate,'%Y%m%d')", connstr);
|
|
|
|
|
|
+ string end = DateTime.Now.ToString("2023-09-22 15:35:00");
|
|
|
|
+ DataTable selfDt = CustomerSqlConn.dtable("select UserId,MerchantId,SnNo,PayMode,IsAct,DATE_FORMAT(CreateDate,'%Y%m%d'),sum(PayMoney),count(Id),sum(MaxDivi),sum(MerchantActualAmount) from ConsumerOrders where MerchantId>0 and CreateDate>='" + start + "' and CreateDate<'" + end + "' and Status>0 group by UserId,MerchantId,SnNo,PayMode,IsAct,DATE_FORMAT(CreateDate,'%Y%m%d')", connstr);
|
|
if (selfDt.Rows.Count > 0)
|
|
if (selfDt.Rows.Count > 0)
|
|
{
|
|
{
|
|
function.WriteLog("统计人数:" + selfDt.Rows.Count + "\n\n", "统计商户和创客交易额日志");
|
|
function.WriteLog("统计人数:" + selfDt.Rows.Count + "\n\n", "统计商户和创客交易额日志");
|