dongdingding
董丁丁 2 years ago
parent 822fe3cd98
commit e251fb8e55

@ -17,9 +17,9 @@
</select> </select>
<select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse"> <select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse">
select count(*) as count, month_year as zhuanxiangTime ,type select sum(count) as count, month_year as zhuanxiangTime ,type
from tc_qlzxxdsj WHERE NOW() >= DATE_SUB(DATE_SUB(month_year, INTERVAL 6 MONTH), INTERVAL 1 YEAR) from tc_qlzxxdsj WHERE NOW() >= DATE_SUB(DATE_SUB(month_year, INTERVAL 6 MONTH), INTERVAL 1 YEAR)
or NOW() &lt;= DATE_SUB(month_year, INTERVAL 6 MONTH) or NOW() &lt;= DATE_SUB(month_year, INTERVAL 6 MONTH) and type is not null
GROUP BY type, month_year GROUP BY type, month_year
</select> </select>

Loading…
Cancel
Save