浏览代码

修改统计表

lcl 2 年之前
父节点
当前提交
77bc8e3730
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AppStart/Helper/StatService.cs

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -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", "统计商户和创客交易额日志");