diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 6a68ef369..4481e9d05 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -314,9 +314,9 @@ function get_pay_way($id=null) break; case 15: return "双乾支付-快捷"; - break; case 17: return "易宝支付"; + break; } } diff --git a/Application/Admin/Controller/FinancialSummaryController.class.php b/Application/Admin/Controller/FinancialSummaryController.class.php index bd39dac4f..b7b23edc9 100644 --- a/Application/Admin/Controller/FinancialSummaryController.class.php +++ b/Application/Admin/Controller/FinancialSummaryController.class.php @@ -22,7 +22,8 @@ class FinancialSummaryController extends AdminController "sqkj_count"=>"双乾-快捷", "wx_count"=>"微信", "zfb_count"=>"支付宝", - "kj_count"=>"快捷" + "kj_count"=>"快捷", + "ybzf_count"=>"易宝支付", ); public function _initialize() { @@ -31,6 +32,9 @@ class FinancialSummaryController extends AdminController } public function index($p=1) { + $this->beginThismonth = mktime(0,0,0,date('m'),1,date('Y')); + $this->endThismonth = mktime(0,0,0,date('m')+1,1,date('Y'))-1; + dd($this->beginThismonth, $this->endThismonth); if(!array_key_exists("year",$_REQUEST) || !array_key_exists("type",$_REQUEST)){ $this->redirect(ACTION_NAME, array('year' => date('Y',time()),"type"=>2)); } diff --git a/Application/Admin/Controller/FinancialSummarySetController.class.php b/Application/Admin/Controller/FinancialSummarySetController.class.php index 2f49c500a..0cd903e88 100644 --- a/Application/Admin/Controller/FinancialSummarySetController.class.php +++ b/Application/Admin/Controller/FinancialSummarySetController.class.php @@ -334,7 +334,8 @@ class FinancialSummarySetController extends \Think\Controller "zfb"=>0, "gfzfb"=>0, "sqzfb"=>0, - "sqkj"=>0 + "sqkj"=>0, + "ybzf"=>0, ]; $this->getSpendPayWay($moneyarry); $this->getGameSupersignPayWay($moneyarry); @@ -377,13 +378,24 @@ class FinancialSummarySetController extends \Think\Controller "type"=>5,"sort"=>3, "sum_money"=>number_format($moneyarry['sqkj']/100, 2, '.', '') ); + $this->adddata[] = array( + "key_name"=>'ybzf_count', + "type"=>4,"sort"=>5, + "sum_money"=>number_format($moneyarry['ybzf']/100, 2, '.', '') + ); + $this->adddata[] = array( + "key_name"=>'ybzf_count', + "type"=>5,"sort"=>4, + "sum_money"=>number_format($moneyarry['ybzf']/100, 2, '.', '') + ); + echo 'success'; } //获取spend表 protected function getSpendPayWay(&$moneyarry){ $map = array( "pay_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), "pay_status"=>1, - "pay_way"=>array("IN","1,2,3,9,15") + "pay_way"=>array("IN","1,2,3,9,15,17") ); $dbres=$this->SpendModel ->field(" @@ -391,7 +403,8 @@ class FinancialSummarySetController extends \Think\Controller IFNULL(SUM(CASE WHEN pay_way = 3 THEN pay_amount ELSE 0 END),0) as wxapp_count, IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_amount ELSE 0 END),0) as zfbgf_count, IFNULL(SUM(CASE WHEN pay_way = 9 THEN pay_amount ELSE 0 END),0) as zfbsq_count, - IFNULL(SUM(CASE WHEN pay_way = 15 THEN pay_amount ELSE 0 END),0) as kjsq_count + IFNULL(SUM(CASE WHEN pay_way = 15 THEN pay_amount ELSE 0 END),0) as kjsq_count, + IFNULL(SUM(CASE WHEN pay_way = 17 THEN pay_amount ELSE 0 END),0) as ybzf_count ") ->where($map) ->find(); @@ -399,6 +412,7 @@ class FinancialSummarySetController extends \Think\Controller $moneyarry['gfzfb'] += $dbres['zfbgf_count']*100; $moneyarry['sqzfb'] += $dbres['zfbsq_count']*100; $moneyarry['sqkj'] += $dbres['kjsq_count']*100; + $moneyarry['ybzf'] += $dbres['ybzf_count']*100; } //获取超级签购买 protected function getGameSupersignPayWay(&$moneyarry) @@ -410,12 +424,14 @@ class FinancialSummarySetController extends \Think\Controller $dbres=$this->GameSupersignModel ->field(" IFNULL(SUM(CASE WHEN pay_way = 2 THEN pay_price ELSE 0 END),0) as wx_count, - IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_price ELSE 0 END),0) as zfb_count + IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_price ELSE 0 END),0) as zfb_count, + IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_price ELSE 0 END),0) as ybzf_count ") ->where($map) ->find(); $moneyarry['wx'] += $dbres['wx_count']*100; $moneyarry['gfzfb'] += $dbres['zfb_count']*100; + $moneyarry['ybzf'] += $dbres['ybzf_count']*100; } //玩家购买平台币 protected function getDepositPayWay(&$moneyarry) @@ -423,7 +439,7 @@ class FinancialSummarySetController extends \Think\Controller $map = array( "create_time"=> array('BETWEEN',array($this->beginThismonth, $this->endThismonth)), "pay_status"=>1, - "pay_way"=>array("IN","1,2,3,9,15") + "pay_way"=>array("IN","1,2,3,9,15,17") ); $dbres=$this->DepositModel ->field(" @@ -431,7 +447,8 @@ class FinancialSummarySetController extends \Think\Controller IFNULL(SUM(CASE WHEN pay_way = 3 THEN pay_amount ELSE 0 END),0) as wxapp_count, IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_amount ELSE 0 END),0) as zfbgf_count, IFNULL(SUM(CASE WHEN pay_way = 9 THEN pay_amount ELSE 0 END),0) as zfbsq_count, - IFNULL(SUM(CASE WHEN pay_way = 15 THEN pay_amount ELSE 0 END),0) as kjsq_count + IFNULL(SUM(CASE WHEN pay_way = 15 THEN pay_amount ELSE 0 END),0) as kjsq_count, + IFNULL(SUM(CASE WHEN pay_way = 17 THEN pay_amount ELSE 0 END),0) as ybzf_count ") ->where($map) ->find(); @@ -439,6 +456,7 @@ class FinancialSummarySetController extends \Think\Controller $moneyarry['gfzfb'] += $dbres['zfbgf_count']*100; $moneyarry['sqzfb'] += $dbres['zfbsq_count']*100; $moneyarry['sqkj'] += $dbres['kjsq_count']*100; + $moneyarry['ybzf'] += $dbres['ybzf_count']*100; } //会长充值平台币 protected function getCoinPayOrderPayWay(&$moneyarry) @@ -450,12 +468,14 @@ class FinancialSummarySetController extends \Think\Controller $dbres= $this->CoinPayOrderModel ->field(" IFNULL(SUM(CASE WHEN pay_way = 2 THEN pay_amount ELSE 0 END),0) as wx_count, - IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_amount ELSE 0 END),0) as zfb_count + IFNULL(SUM(CASE WHEN pay_way = 1 THEN pay_amount ELSE 0 END),0) as zfb_count, + IFNULL(SUM(CASE WHEN pay_way = 17 THEN pay_amount ELSE 0 END),0) as ybzf_count ") ->where($map) ->find(); $moneyarry['wx'] += $dbres['wx_count']*100; $moneyarry['gfzfb'] += $dbres['zfb_count']*100; + $moneyarry['ybzf'] += $dbres['ybzf_count']*100; } public function addDb() { diff --git a/Application/Admin/Controller/OldCountController.class.php b/Application/Admin/Controller/OldCountController.class.php index 30e95b003..903f911de 100644 --- a/Application/Admin/Controller/OldCountController.class.php +++ b/Application/Admin/Controller/OldCountController.class.php @@ -1,5 +1,6 @@ diff --git a/Application/Admin/View/TestOrder/addOrder.html b/Application/Admin/View/TestOrder/addOrder.html index d1c160c14..8431b91ff 100644 --- a/Application/Admin/View/TestOrder/addOrder.html +++ b/Application/Admin/View/TestOrder/addOrder.html @@ -147,6 +147,7 @@ + diff --git a/Application/Admin/View/TestOrder/lists.html b/Application/Admin/View/TestOrder/lists.html index d54ff84ba..c22845ba8 100644 --- a/Application/Admin/View/TestOrder/lists.html +++ b/Application/Admin/View/TestOrder/lists.html @@ -86,6 +86,7 @@ +