优化上游pool

master
chenzhi 4 years ago
parent ce3aa147e5
commit 6f90b18be9

@ -886,13 +886,12 @@ class CompanyStatementController extends ThinkController
//整合数据 //整合数据
if ($k!='complement_down' && $k != 'complement_user') { if ($k!='complement_down' && $k != 'complement_user') {
$lsres = $LackStatement->where("company_id={$company_info['id']} and is_pool = 0")->select(); $lsres = $LackStatement->where("company_id={$company_info['id']} and is_pool = 0 and company_type = {$company_info['company_type']}")->select();
} else { } else {
$lsres = $LackStatement->where("company_id={$company_info['id']} and is_pool = 0 and withdraw_type = 3")->select(); $lsres = $LackStatement->where("company_id={$company_info['id']} and is_pool = 0 and withdraw_type = 3 and company_type = {$company_info['company_type']}")->select();
} }
$del_lack_ids = []; $del_lack_ids = [];
if(count($lsres) > 0){ if(count($lsres) > 0){
//进行聚合 //进行聚合
foreach($lsres as $key=>$val){ foreach($lsres as $key=>$val){

Loading…
Cancel
Save