Merge remote-tracking branch 'origin/master' into master
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
... | @@ -6,9 +6,9 @@ | ... | @@ -6,9 +6,9 @@ |
6 | <select id="topCensus" resultType="java.util.Map"> | 6 | <select id="topCensus" resultType="java.util.Map"> |
7 | select | 7 | select |
8 | '年度安全隐患统计(起)' as 'name','yh' as 'code', | 8 | '年度安全隐患统计(起)' as 'name','yh' as 'code', |
9 | ifnull( SUM( CASE WHEN LEFT ( sr.rec_ord_whenlong, 7 ) = #{nowMonth} THEN 1 ELSE 0 END ),0) as now, | 9 | ifnull( SUM( CASE WHEN LEFT ( sr.rec_ord_report_date, 7 ) = #{nowMonth} THEN 1 ELSE 0 END ),0) as now, |
10 | ifnull( SUM( CASE WHEN LEFT ( sr.rec_ord_whenlong, 4 ) = #{nowYear} THEN 1 ELSE 0 END),0) as nowYear, | 10 | ifnull( SUM( CASE WHEN LEFT ( sr.rec_ord_report_date, 4 ) = #{nowYear} THEN 1 ELSE 0 END),0) as nowYear, |
11 | ifnull( SUM( CASE WHEN LEFT ( sr.rec_ord_whenlong, 4 ) = #{lastYear} THEN 1 ELSE 0 END ),0) as last_year | 11 | ifnull( SUM( CASE WHEN LEFT ( sr.rec_ord_report_date, 4 ) = #{lastYear} THEN 1 ELSE 0 END ),0) as last_year |
12 | from ajh_rectification_info sr | 12 | from ajh_rectification_info sr |
13 | UNION | 13 | UNION |
14 | select | 14 | select | ... | ... |
-
请 注册 或 登录 后发表评论