|
|
@ -503,7 +503,7 @@ |
|
|
|
on t1.n = t2.hours |
|
|
|
</select> |
|
|
|
<select id="selectNonAutomaticWarningFacilityDay" resultType="java.util.HashMap"> |
|
|
|
select facility_name as facilityName, COALESCE(w_count.number, 0) AS number |
|
|
|
select distinct facility_name as facilityName, COALESCE(w_count.number, 0) AS number |
|
|
|
from dc_facility AS s |
|
|
|
LEFT JOIN (SELECT w.stake_mark, COUNT(1) AS number FROM dc_warning AS w |
|
|
|
WHERE DATE_FORMAT(w.warning_time,'%Y-%m-%d') = DATE_FORMAT(#{warningTime},'%Y-%m-%d') |
|
|
@ -512,7 +512,7 @@ |
|
|
|
where s.facility_type=1 |
|
|
|
</select> |
|
|
|
<select id="selectNonAutomaticWarningFacilityMonth" resultType="java.util.HashMap"> |
|
|
|
select facility_name as facilityName, COALESCE(w_count.number, 0) AS number |
|
|
|
select distinct facility_name as facilityName, COALESCE(w_count.number, 0) AS number |
|
|
|
from dc_facility AS s |
|
|
|
LEFT JOIN (SELECT w.stake_mark, COUNT(1) AS number FROM dc_warning AS w |
|
|
|
WHERE DATE_FORMAT(w.warning_time,'%Y-%m') = DATE_FORMAT(#{warningTime},'%Y-%m') |
|
|
@ -521,7 +521,7 @@ |
|
|
|
where s.facility_type=1 |
|
|
|
</select> |
|
|
|
<select id="selectNonAutomaticWarningFacilityYear" resultType="java.util.HashMap"> |
|
|
|
select facility_name as facilityName, COALESCE(w_count.number, 0) AS number |
|
|
|
select distinct facility_name as facilityName, COALESCE(w_count.number, 0) AS number |
|
|
|
from dc_facility AS s |
|
|
|
LEFT JOIN (SELECT w.stake_mark, COUNT(1) AS number FROM dc_warning AS w |
|
|
|
WHERE DATE_FORMAT(w.warning_time,'%Y') = DATE_FORMAT(#{warningTime},'%Y') |
|
|
|