Merge pull request #3518 from zhupengcheng/master

跨数据库支持。列的别名通常不区分大小写,用双引号或反引号引起来才能保证别名大小写不被修改。
2.5.0
许雪里 8 months ago committed by GitHub
commit 3757e88318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -178,9 +178,9 @@
<select id="findLogReport" resultType="java.util.Map" >
SELECT
COUNT(handle_code) triggerDayCount,
SUM(CASE WHEN (trigger_code in (0, 200) and handle_code = 0) then 1 else 0 end) as triggerDayCountRunning,
SUM(CASE WHEN handle_code = 200 then 1 else 0 end) as triggerDayCountSuc
COUNT(handle_code) "triggerDayCount",
SUM(CASE WHEN (trigger_code in (0, 200) and handle_code = 0) then 1 else 0 end) as "triggerDayCountRunning",
SUM(CASE WHEN handle_code = 200 then 1 else 0 end) as "triggerDayCountSuc"
FROM xxl_job_log
WHERE trigger_time BETWEEN #{from} and #{to}
</select>

Loading…
Cancel
Save