|
@@ -245,14 +245,15 @@
|
|
|
SUBSTR(create_date, 1, 4) as year,
|
|
|
count(create_date) as dataCount
|
|
|
from project
|
|
|
- group by
|
|
|
- SUBSTR(create_date, 1, 4)
|
|
|
where
|
|
|
mt_company_id = #{companyId}
|
|
|
and
|
|
|
create_date <![CDATA[ >= ]]> #{beforeDateStr}
|
|
|
and
|
|
|
create_date <![CDATA[ <= ]]> #{nowDateStr}
|
|
|
+ group by
|
|
|
+ SUBSTR(create_date, 1, 4)
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
<!--获取 年份-维保次数 -->
|
|
@@ -263,14 +264,15 @@
|
|
|
SUBSTR(create_date, 1, 4) as year,
|
|
|
count(create_date) as dataCount
|
|
|
from maintenance_record
|
|
|
- group by
|
|
|
- SUBSTR(create_date, 1, 4)
|
|
|
where
|
|
|
mt_company_id = #{companyId}
|
|
|
and
|
|
|
create_date <![CDATA[ >= ]]> #{beforeDateStr}
|
|
|
and
|
|
|
create_date <![CDATA[ <= ]]> #{nowDateStr}
|
|
|
+ group by
|
|
|
+ SUBSTR(create_date, 1, 4)
|
|
|
+
|
|
|
</select>
|
|
|
<!--获取 年份-急修次数 -->
|
|
|
<select id="getEveryYearEmergencyCount"
|
|
@@ -280,14 +282,15 @@
|
|
|
SUBSTR(create_date, 1, 4) as year,
|
|
|
count(create_date) as dataCount
|
|
|
from emergency_repair
|
|
|
- group by
|
|
|
- SUBSTR(create_date, 1, 4)
|
|
|
where
|
|
|
mt_company_id = #{companyId}
|
|
|
and
|
|
|
create_date <![CDATA[ >= ]]> #{beforeDateStr}
|
|
|
and
|
|
|
create_date <![CDATA[ <= ]]> #{nowDateStr}
|
|
|
+ group by
|
|
|
+ SUBSTR(create_date, 1, 4)
|
|
|
+
|
|
|
</select>
|
|
|
<!--获取 年份-年检次数 -->
|
|
|
<select id="getEveryYearAnnualCount"
|
|
@@ -297,14 +300,15 @@
|
|
|
SUBSTR(create_date, 1, 4) as year,
|
|
|
count(create_date) as dataCount
|
|
|
from annual_inspection
|
|
|
- group by
|
|
|
- SUBSTR(create_date, 1, 4)
|
|
|
where
|
|
|
mt_company_id = #{companyId}
|
|
|
and
|
|
|
create_date <![CDATA[ >= ]]> #{beforeDateStr}
|
|
|
and
|
|
|
create_date <![CDATA[ <= ]]> #{nowDateStr}
|
|
|
+ group by
|
|
|
+ SUBSTR(create_date, 1, 4)
|
|
|
+
|
|
|
</select>
|
|
|
<!--获取 年份-大修次数 -->
|
|
|
<select id="getEveryYearCapitalCount"
|
|
@@ -314,14 +318,14 @@
|
|
|
SUBSTR(create_date, 1, 4) as year,
|
|
|
count(create_date) as dataCount
|
|
|
from capital_repair
|
|
|
- group by
|
|
|
- SUBSTR(create_date, 1, 4)
|
|
|
where
|
|
|
mt_company_id = #{companyId}
|
|
|
and
|
|
|
create_date <![CDATA[ >= ]]> #{beforeDateStr}
|
|
|
and
|
|
|
create_date <![CDATA[ <= ]]> #{nowDateStr}
|
|
|
+ group by
|
|
|
+ SUBSTR(create_date, 1, 4)
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|