diff --git a/app/adminapi/logic/cost_project/CostProjectStatisticsLogic.php b/app/adminapi/logic/cost_project/CostProjectStatisticsLogic.php index 46dbe2357..867196a78 100644 --- a/app/adminapi/logic/cost_project/CostProjectStatisticsLogic.php +++ b/app/adminapi/logic/cost_project/CostProjectStatisticsLogic.php @@ -41,9 +41,14 @@ class CostProjectStatisticsLogic extends BaseLogic $financialRefund = new FinancialRefund(); $financialSettlement = new FinancialSettlement(); - - $total_apply_amount = $marketingContract->statistics_count([], $time, 'sum', ''); - $apply_amount_value = $marketingContract->statistics_count([], $time, 'group', 'create_time'); + $where1=[ + ['review_status','=', 1], + ['contract_type','=',0], + ['business_nature','=',4], + ['status','=',0] + ]; + $total_apply_amount = $marketingContract->statistics_count($where1, $time, 'sum', ''); + $apply_amount_value = $marketingContract->statistics_count($where1, $time, 'group', 'create_time'); $data[] = [ 'title' => '待立项项目', 'desc' => '',