Skip to content

Commit

Permalink
Merge pull request #3518 from zhupengcheng/master
Browse files Browse the repository at this point in the history
跨数据库支持。列的别名通常不区分大小写,用双引号或反引号引起来才能保证别名大小写不被修改。
  • Loading branch information
xuxueli authored Jan 11, 2025
2 parents b718818 + ee4db81 commit 3757e88
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3757e88

Please sign in to comment.