|
|
|
|
@ -3516,7 +3516,7 @@ select year AS DIVISION
|
|
|
|
|
sum(decode(booth_id, '08', 1, 0) ) AS BOOTH_08,
|
|
|
|
|
sum(decode(booth_id, '09', 1, 0) ) AS BOOTH_09,
|
|
|
|
|
sum(decode(booth_id, '10', 1, 0) ) AS BOOTH_10
|
|
|
|
|
FROM FARE_TERMINAL_INFO A
|
|
|
|
|
FROM DAY_TRAFFIC_INFO A
|
|
|
|
|
WHERE PASS_DATE between #{inStDate} and #{inStDate}
|
|
|
|
|
<if test="fareOfficeId != null and !fareOfficeId.equals('') and !fareOfficeId.equals(':')">
|
|
|
|
|
AND A.FARE_OFFICE_ID = #{fareOfficeId}
|
|
|
|
|
@ -3535,7 +3535,7 @@ UNION ALL
|
|
|
|
|
sum(decode(booth_id, '08', 1, 0) ) AS BOOTHMISS_08,
|
|
|
|
|
sum(decode(booth_id, '09', 1, 0) ) AS BOOTHMISS_09,
|
|
|
|
|
sum(decode(booth_id, '10', 1, 0) ) AS BOOTHMISS_10
|
|
|
|
|
FROM FARE_TERMINAL_INFO A
|
|
|
|
|
FROM DAY_TRAFFIC_INFO A
|
|
|
|
|
WHERE PASS_DATE between #{inStDate} and #{inStDate}
|
|
|
|
|
<if test="fareOfficeId != null and !fareOfficeId.equals('') and !fareOfficeId.equals(':')">
|
|
|
|
|
AND A.FARE_OFFICE_ID = #{fareOfficeId}
|
|
|
|
|
@ -3565,7 +3565,7 @@ UNION ALL
|
|
|
|
|
sum(decode(booth_id, '08', 1, 0) ) AS BOOTH_08,
|
|
|
|
|
sum(decode(booth_id, '09', 1, 0) ) AS BOOTH_09,
|
|
|
|
|
sum(decode(booth_id, '10', 1, 0) ) AS BOOTH_10
|
|
|
|
|
FROM FARE_TERMINAL_INFO A
|
|
|
|
|
FROM DAY_TRAFFIC_INFO A
|
|
|
|
|
WHERE PASS_DATE between #{inStDate}||'01' and #{inStDate}||'31'
|
|
|
|
|
<if test="fareOfficeId != null and !fareOfficeId.equals('') and !fareOfficeId.equals(':')">
|
|
|
|
|
AND A.FARE_OFFICE_ID = #{fareOfficeId}
|
|
|
|
|
@ -3584,7 +3584,7 @@ UNION ALL
|
|
|
|
|
sum(decode(booth_id, '08', 1, 0) ) AS BOOTHMISS_08,
|
|
|
|
|
sum(decode(booth_id, '09', 1, 0) ) AS BOOTHMISS_09,
|
|
|
|
|
sum(decode(booth_id, '10', 1, 0) ) AS BOOTHMISS_10
|
|
|
|
|
FROM FARE_TERMINAL_INFO A
|
|
|
|
|
FROM DAY_TRAFFIC_INFO A
|
|
|
|
|
WHERE PASS_DATE between #{inStDate}||'01' and #{inStDate}||'31'
|
|
|
|
|
<if test="fareOfficeId != null and !fareOfficeId.equals('') and !fareOfficeId.equals(':')">
|
|
|
|
|
AND A.FARE_OFFICE_ID = #{fareOfficeId}
|
|
|
|
|
@ -3609,7 +3609,7 @@ SELECT
|
|
|
|
|
sum(decode(booth_id, '08', 1, 0) ) AS BOOTH_08,
|
|
|
|
|
sum(decode(booth_id, '09', 1, 0) ) AS BOOTH_09,
|
|
|
|
|
sum(decode(booth_id, '10', 1, 0) ) AS BOOTH_10
|
|
|
|
|
FROM FARE_TERMINAL_INFO A
|
|
|
|
|
FROM DAY_TRAFFIC_INFO A
|
|
|
|
|
WHERE PASS_DATE between #{inStDate} and #{inEdDate}
|
|
|
|
|
<if test="fareOfficeId != null and !fareOfficeId.equals('') and !fareOfficeId.equals(':')">
|
|
|
|
|
AND A.FARE_OFFICE_ID = #{fareOfficeId}
|
|
|
|
|
@ -3629,7 +3629,7 @@ UNION ALL
|
|
|
|
|
sum(decode(booth_id, '08', 1, 0) ) AS BOOTHMISS_08,
|
|
|
|
|
sum(decode(booth_id, '09', 1, 0) ) AS BOOTHMISS_09,
|
|
|
|
|
sum(decode(booth_id, '10', 1, 0) ) AS BOOTHMISS_10
|
|
|
|
|
FROM FARE_TERMINAL_INFO A
|
|
|
|
|
FROM DAY_TRAFFIC_INFO A
|
|
|
|
|
WHERE PASS_DATE between #{inStDate} and #{inEdDate}
|
|
|
|
|
<if test="fareOfficeId != null and !fareOfficeId.equals('') and !fareOfficeId.equals(':')">
|
|
|
|
|
AND A.FARE_OFFICE_ID = #{fareOfficeId}
|
|
|
|
|
|