|
|
@ -287,7 +287,7 @@ |
|
|
|
|
|
|
|
<select id="selectRoadSectionAnalysis" resultType="java.util.Map"> |
|
|
|
|
|
|
|
select t3.section_name,t3.mileage,IFNULL(t4.num,0) num,IFNULL(t5.lastNum,0) lastNum, |
|
|
|
select t3.id,t3.section_name,t3.mileage,IFNULL(t4.num,0) num,IFNULL(t5.lastNum,0) lastNum, |
|
|
|
ROUND(IFNULL( t4.num / t3.mileage * 100, 0 ),2) avgNum |
|
|
|
from |
|
|
|
(select * from dc_road_section) t3 |
|
|
@ -331,6 +331,7 @@ |
|
|
|
</if> |
|
|
|
GROUP BY t2.section_id) t5 |
|
|
|
on t3.id = t5.section_id |
|
|
|
order by t3.id asc |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectEventTypeAnalysis" resultType="java.util.Map"> |
|
|
|