|
|
|
@ -1060,9 +1060,9 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
|
"company_name"=>$company_info['partner'],
|
|
|
|
|
'company_belong_name'=>$company_info_other['partner'],
|
|
|
|
|
"company_info"=>json_encode($company_info,JSON_UNESCAPED_UNICODE),
|
|
|
|
|
"statement_money"=>$va['ratio_money'],
|
|
|
|
|
"pay_amount"=>$va['pay_money'],
|
|
|
|
|
"platform_amount"=>$va['pay_money'],
|
|
|
|
|
"statement_money"=>$va['statement_money'],
|
|
|
|
|
"pay_amount"=>$va['pay_amount'],
|
|
|
|
|
"platform_amount"=>$va['platform_amount'],
|
|
|
|
|
"fine"=>$va['fine'],
|
|
|
|
|
"reward"=>$va['reward'],
|
|
|
|
|
"statement_begin_time"=>$v['statement_begin_time'],
|
|
|
|
@ -1075,6 +1075,7 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
//整合数据
|
|
|
|
|
$lsres = $LackStatement->where("company_name='{$company_info['partner']}' and is_pool = 0")->select();
|
|
|
|
|
|
|
|
|
|
$del_lack_ids = [];
|
|
|
|
|
if(count($lsres) > 0){
|
|
|
|
|
//进行聚合
|
|
|
|
@ -1093,15 +1094,15 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
|
// dump($no_pool_money);
|
|
|
|
|
// dump($va);
|
|
|
|
|
// dump($k);die();
|
|
|
|
|
if($va['platform_amount'] < $no_pool_money){
|
|
|
|
|
//依旧小于不结算金额存旧版
|
|
|
|
|
if($lackcompany['pay_amount'] != 0){
|
|
|
|
|
$lask_id = $LackStatement->add($lackcompany);
|
|
|
|
|
$v['create_lack_ids'][] =$lask_id;
|
|
|
|
|
$v['lack_statement_money'] +=$lackcompany['statement_money'];
|
|
|
|
|
$v['lack_platform_amount'] +=$lackcompany['platform_amount'];
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
// if($va['platform_amount'] < $no_pool_money){
|
|
|
|
|
// //依旧小于不结算金额存旧版
|
|
|
|
|
// if($lackcompany['pay_amount'] != 0){
|
|
|
|
|
// $lask_id = $LackStatement->add($lackcompany);
|
|
|
|
|
// $v['create_lack_ids'][] =$lask_id;
|
|
|
|
|
// $v['lack_statement_money'] +=$lackcompany['statement_money'];
|
|
|
|
|
// $v['lack_platform_amount'] +=$lackcompany['platform_amount'];
|
|
|
|
|
// }
|
|
|
|
|
// }else{
|
|
|
|
|
if($va['pay_amount'] != 0){
|
|
|
|
|
//存成功
|
|
|
|
|
$company =[
|
|
|
|
@ -1131,7 +1132,7 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
|
$v['fine'] +=$va['fine'];
|
|
|
|
|
$v['reward'] +=$va['reward'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
//结算单规则
|
|
|
|
|
protected function updatePoolVerifyStatus($ids,$old_status,$change_status,$op_pre,$num){
|
|
|
|
|