|
|
|
@ -616,7 +616,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//创建基础未满基础信息
|
|
|
|
|
if($va['pay_amount'] < $no_pool_money){
|
|
|
|
|
if($va['platform_amount'] < $no_pool_money){
|
|
|
|
|
$lackcompany =[
|
|
|
|
|
"company_id"=>$company_info['id'],
|
|
|
|
|
"company_type"=>$v['company_type'],
|
|
|
|
@ -651,16 +651,16 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
array_multisort($last_names,SORT_DESC,SORT_STRING,$va['statement_info']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if($va['pay_amount'] < $no_pool_money){
|
|
|
|
|
if($va['platform_amount'] < $no_pool_money){
|
|
|
|
|
//依旧小于不结算金额存旧版
|
|
|
|
|
if($lackcompany['pay_amount'] > 0){
|
|
|
|
|
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){
|
|
|
|
|
if($va['pay_amount'] != 0){
|
|
|
|
|
//存成功
|
|
|
|
|
$company =[
|
|
|
|
|
"pool_id"=>0,
|
|
|
|
|