|
@@ -68,7 +68,7 @@
|
|
|
<select id="alarmTypeCount" resultMap="AlarmStatisticMonthDtoResult">
|
|
|
SELECT sum(p.fre) as frequency,p.alarmType as alarmType
|
|
|
from
|
|
|
- (SELECT
|
|
|
+ (SELECT /*+ GROUP_OPT_FLAG(1)*/
|
|
|
a.alarm_type as alarmType,
|
|
|
count(DISTINCT a.alarm_id) as fre
|
|
|
FROM
|
|
@@ -93,7 +93,7 @@
|
|
|
<select id="listDtoMonth" resultMap="AlarmStatisticMonthDtoResult">
|
|
|
SELECT p.monthsta as monthsta,sum(p.fre) as frequency,p.monthstaString as monthstaString
|
|
|
from
|
|
|
- (SELECT
|
|
|
+ (SELECT /*+ GROUP_OPT_FLAG(1)*/
|
|
|
DATE_FORMAT(a.alarm_time,'%Y年%m月') as monthstaString,
|
|
|
MONTH(a.alarm_time) as monthsta,
|
|
|
count(DISTINCT a.alarm_id) as fre
|
|
@@ -154,7 +154,7 @@
|
|
|
<select id="alarmTypeAreaCount" resultMap="AlarmTypeStatisticResult">
|
|
|
SELECT railwayCode,railwayName,alarmMile,SUM(p.pre) as frequency
|
|
|
from
|
|
|
- (SELECT
|
|
|
+ (SELECT /*+ GROUP_OPT_FLAG(1)*/
|
|
|
a.railway_code as railwayCode,
|
|
|
b.railway_name as railwayName,
|
|
|
a.alarm_mile as alarmMile,
|