master
chenzhi 4 years ago
parent 3b3ed208e2
commit ef4702fb46

@ -213,7 +213,7 @@ class FinancialSummarySetController extends \Think\Controller
$test_pay_amount = M("TestOrder")->where($map2)->field("IFNULL(sum(pay_amount),0) pay_amount")->find()['pay_amount'];
$temparr['sum_money'] = number_format(($cash_spend*100 + $deposit*100 + $test_pay_amount*100 )/100, 2, '.', '');
$this->adddata[]=$temparr;
}
//奖罚收入
@ -333,6 +333,18 @@ class FinancialSummarySetController extends \Think\Controller
"sum_money"=>number_format($other_group_nobind_count/100, 2, '.', '')
);
}
public function setChannelMoney(){
$r = D("PaymentMerchant")->Ways;
dd($r);
}
/**
* 获取类型为4,5的数据/按支付渠道类型,支付类型类型
*/

@ -0,0 +1,23 @@
<?php
namespace Admin\Model;
use Think\Model;
class PaymentMerchantModel extends Model
{
protected $tablePrefix = 'tab_';
public $Ways=[
"1"=>"支付宝",
"2"=>"微信",
"4"=>"快捷支付"
];
public $Channel=[
"1"=>"支付宝",
"2"=>"微信",
"3"=>"易宝支付",
"4"=>"双乾支付",
"5"=>"汇付宝支付"
];
}
Loading…
Cancel
Save