|
@@ -407,13 +407,13 @@ class Datastat extends BaseController
|
|
|
$authorize_amount_top = Db::query("select entrust_unit,entrust_unit_name
|
|
|
,sum(authorize_amount) as all_authorize_amount
|
|
|
from cp_cost_project where review_unit=$unit_id and entrust_unit_name != ''
|
|
|
- group by entrust_unit order by all_authorize_amount");
|
|
|
+ group by entrust_unit,entrust_unit_name order by all_authorize_amount");
|
|
|
|
|
|
//委托单位送审总额排行
|
|
|
$sent_review_amount_top = Db::query("select entrust_unit,entrust_unit_name
|
|
|
,sum(sent_review_amount) as all_sent_amount
|
|
|
from cp_cost_project where review_unit=$unit_id and entrust_unit_name != ''
|
|
|
- group by entrust_unit order by all_sent_amount");
|
|
|
+ group by entrust_unit,entrust_unit_name order by all_sent_amount");
|
|
|
|
|
|
$year = (double)$today;
|
|
|
//2024年送审总额占比分布图
|
|
@@ -505,7 +505,7 @@ class Datastat extends BaseController
|
|
|
,(sum(authorize_amount)-sum(sent_review_amount))/sum(sent_review_amount) as increaseOrdecrease
|
|
|
,count(*) as project_number
|
|
|
from cp_cost_project where review_unit=$unit_id and entrust_unit_name != ''
|
|
|
- group by entrust_unit order by project_number");
|
|
|
+ group by entrust_unit,entrust_unit_name order by project_number");
|
|
|
return $review_poportion;
|
|
|
}
|
|
|
|