优化补点

master
chenzhi 4 years ago
parent 859f5b58c9
commit 6ce7377dc1

@ -1456,10 +1456,12 @@ class CompanyStatementSetController extends Controller {
"statement_info"=>json_encode($v['statement_info'],JSON_UNESCAPED_UNICODE)
];
}
//无需补点不统计其他金额
if($type == 2 && $v['statement_money'] == 0){
continue ;
}
//聚合未结算数据
$lsres = $LackStatement->where("company_id='{$k}' and is_pool = 0")->select();
// dd($lsres);
$del_lack_ids = [];
if(count($lsres) > 0){
//进行聚合
@ -1492,9 +1494,6 @@ class CompanyStatementSetController extends Controller {
if($v['platform_amount'] == 0 && $v['statement_money'] == 0){
continue ;
}
if($type == 2 && $v['statement_money'] == 0){
//补点不存
}else{
if($v['platform_amount'] < 300){
//存未满
// if($lackcompany['pay_amount'] != 0){
@ -1540,7 +1539,6 @@ class CompanyStatementSetController extends Controller {
}
}
}
}
/**
* 保存信息汇总信息
*/

Loading…
Cancel
Save