You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
786 B
PHTML

5 years ago
<?php
namespace Admin\Controller;
class FinancePromoteController extends AdminController
{
public function _initialize(Type $var = null)
{
parent::_initialize();
echo "<pre>";
}
public function index()
{
//获取各会长的现金充值
$map = ["spend.pay_status"=>1];
$map['pay_way'] = array("GT",0);
$field = "spend.promote_id,spend.promote_account,sum(pay_amount) pay_amount";
$spendRes = M()
->table("tab_spend spend")
->field($field)
->where($map)
->join("tab_promote promote ON spend.promote_id = promote.id","left")
->group('spend.promote_id')
->select();
dump($spendRes);die();
$this->display();
# code...
}
}