diff --git a/Application/Admin/Controller/AggregateFinanceStatementController.class.php b/Application/Admin/Controller/AggregateFinanceStatementController.class.php index 33ab1304b..2abdd79cb 100644 --- a/Application/Admin/Controller/AggregateFinanceStatementController.class.php +++ b/Application/Admin/Controller/AggregateFinanceStatementController.class.php @@ -984,7 +984,7 @@ class AggregateFinanceStatementController extends ThinkController } //整合数据 - $lsres = $LackStatement->where("company_id={$company_info['id']} and is_pool = 0")->select(); + $lsres = $LackStatement->where("company_name='{$company_info['partner']}' and is_pool = 0")->select(); $del_lack_ids = []; if(count($lsres) > 0){ //进行聚合