|
|
|
@ -19,7 +19,8 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
public $WithdrawType = [
|
|
|
|
|
"0"=>"周结",
|
|
|
|
|
"1"=>"月结",
|
|
|
|
|
"2"=>"下游个人补点"
|
|
|
|
|
"2"=>"下游个人补点",
|
|
|
|
|
"3"=>"其他",
|
|
|
|
|
];
|
|
|
|
|
public $VerifyStatus=[
|
|
|
|
|
"-2"=>"拒绝打款",
|
|
|
|
@ -174,7 +175,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$v['oplist'] = $this->OpAuth($v);
|
|
|
|
|
}
|
|
|
|
|
$count = $this->DBModel->field("count(id) count,SUM(statement_money) as statement_money")->where($map)->find();
|
|
|
|
|
$count = $this->DBModel->field("count(id) count,SUM(statement_money) as statement_money,SUM(lack_statement_money) lack_statement_money")->where($map)->find();
|
|
|
|
|
// dd($count);
|
|
|
|
|
$params['p'] = $page;
|
|
|
|
|
$params['row'] = $row;
|
|
|
|
@ -223,7 +224,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$l_ids = $pool_info['create_lack_ids'];
|
|
|
|
|
$lack_info = M("company_lack_statement_info","tab_")->field("*,'0' as st")->where("id in ({$l_ids})")->select();
|
|
|
|
|
|
|
|
|
|
$infolist += $lack_info;
|
|
|
|
|
$infolist =array_merge($infolist,$lack_info);
|
|
|
|
|
}
|
|
|
|
|
$this->viewPuPool($infolist,$is_export);
|
|
|
|
|
}
|
|
|
|
@ -259,17 +260,13 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
}else{
|
|
|
|
|
$va['sum_money'] = "=J{$line}*(K{$line}+L{$line})+M{$line}-N{$line}";
|
|
|
|
|
}
|
|
|
|
|
if($v['st'] == 1){
|
|
|
|
|
$count['sum_money_exp'] .= "O{$line}+";
|
|
|
|
|
$count['platform_amount_exp'] .= "J{$line}+";
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if($v['st'] == 1){
|
|
|
|
|
$count['platform_amount'] += $va['pay_amount'];
|
|
|
|
|
$count['sum_money'] += $va['sum_money'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$v['statement_count'] = count($v['statement_info']);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|