From 219596843b4297dcd424c791d908134f1600d946 Mon Sep 17 00:00:00 2001 From: zyx Date: Thu, 24 Oct 2019 13:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=94=A8=E6=88=B7=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E5=85=85=E5=80=BC=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?,=E6=98=A8=E6=97=A5=E6=B3=A8=E5=86=8C=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PromoteController.class.php | 3 ++- Application/Home/View/default/Promote/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 7fa55a551..1df1b0eaa 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -130,6 +130,7 @@ class PromoteController extends BaseController } $today=total(1); + $yesterdays = total(5); $week=total(2); $mounth=total(3); //计算今日的统计数据 @@ -168,7 +169,7 @@ class PromoteController extends BaseController $yesterdayData = M('User','tab_') ->field('promote_account,promote_id,date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(tab_user.id) as count, IF(tab_promote.grand_id>0,tab_promote.grand_id,IF(tab_promote.grand_id=0 and tab_promote.parent_id >0,tab_promote.parent_id,promote_id)) as promote_id1 , - count(IF(register_time '.$today.',1,null)) as today, + count(IF(register_time '.$yesterdays.',1,null)) as today, count(IF(register_time '.$week.',1,null)) as week, count(IF(register_time '.$mounth.',1,null)) as mounth') ->join('tab_promote on promote_id = tab_promote.id','left') diff --git a/Application/Home/View/default/Promote/index.html b/Application/Home/View/default/Promote/index.html index d06f51924..bd5a9aece 100644 --- a/Application/Home/View/default/Promote/index.html +++ b/Application/Home/View/default/Promote/index.html @@ -11,7 +11,7 @@
  • 当月新增用户充值

    ¥{$mounthAddSpendData.mounth}