rd.id as rid, rd.type as detail_type, rd.company_type as detail_company_type, rd.company_id as detail_company_id , rd.company_name as detail_company_name, rd.settlement_type as detail_settlement_type, rd.promote_account as detail_promote_account,rd.amount as detail_amount
')
->where($map)
->join('tab_reward_detail as rd on rd.record_id = r.id', 'LEFT');
if(I('is_export', false)){
$list = $query
->select();
}else{
$list = $query
->page($p,$row)
->select();
}
->join('tab_reward_detail as rd on rd.record_id = r.id', 'LEFT')->select();
if ($list) {
$record = [];
@ -438,7 +435,6 @@ class StatementMangementController extends ThinkController
$settlment_info = I('settlement_info');
$accounts = I('account');
$user_types = I('user_type');
// 处理结算信息
if ($settlment_info) {
$tmp = [];
@ -477,6 +473,8 @@ class StatementMangementController extends ThinkController
// if (sizeof(array_unique($promoterIds)) != sizeof($promoterIds)) {