From 837c09716dd4b4034f2b4ecf93e4cb32a70555ce Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 30 Jul 2020 14:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E6=B1=87=E6=80=BB-=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FinancialSummarySetController.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Application/Admin/Controller/FinancialSummarySetController.class.php b/Application/Admin/Controller/FinancialSummarySetController.class.php index 02dbf4d9b..4cf8c1f8e 100644 --- a/Application/Admin/Controller/FinancialSummarySetController.class.php +++ b/Application/Admin/Controller/FinancialSummarySetController.class.php @@ -116,7 +116,7 @@ class FinancialSummarySetController extends \Think\Controller { $map = array( - "pay_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), + "payed_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), "pay_status"=>1 ); $res = $this->SpendModel @@ -190,7 +190,7 @@ class FinancialSummarySetController extends \Think\Controller } //获取现金充值 $map = array( - "pay_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), + "payed_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), "pay_status"=>1, "pay_way"=>array("GT",0) ); @@ -213,12 +213,12 @@ class FinancialSummarySetController extends \Think\Controller protected function getRewardRecordIncome() { $map = array( - "reward_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), + "confirm_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), ); - $rrres = M("RewardRecord","tab_") + $rrres = M("RewardDetail","tab_") ->field(" - IFNULL(SUM(CASE WHEN reward_type = 1 THEN money ELSE 0 END),0) as reward_count, - IFNULL(SUM(CASE WHEN reward_type = 2 THEN money ELSE 0 END),0) as fine_count + IFNULL(SUM(CASE WHEN type = 1 THEN amount ELSE 0 END),0) as reward_count, + IFNULL(SUM(CASE WHEN type = 2 THEN amount ELSE 0 END),0) as fine_count ") ->where($map) ->find(); @@ -242,7 +242,7 @@ class FinancialSummarySetController extends \Think\Controller public function setPromoteMoney() { $map = array( - "pay_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), + "payed_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), "pay_status"=>1 ); $res = $this->SpendModel @@ -395,7 +395,7 @@ class FinancialSummarySetController extends \Think\Controller //获取spend表 protected function getSpendPayWay(&$moneyarry){ $map = array( - "pay_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), + "payed_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), "pay_status"=>1, "pay_way"=>array("IN","1,2,3,9,15,17") );