diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 27ad14703..ff1a35640 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -886,13 +886,12 @@ class CompanyStatementController extends ThinkController //整合数据 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 { - $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 = []; - if(count($lsres) > 0){ //进行聚合 foreach($lsres as $key=>$val){