dongdingding
董丁丁 2 years ago
parent f1a5260a0f
commit 277592a75a

@ -18,8 +18,8 @@
</select> </select>
<select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse"> <select id="getaction" resultType="com.ruoyi.screen.domain.response.ZongzhiActionResponse">
select sum(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(CURDATE(), INTERVAL 11 MONTH) from tc_qlzxxdsj WHERE NOW() >= DATE_SUB(CURDATE(), INTERVAL 11 MONTH) AND month_year &lt;=NOW()
GROUP BY type, month_year GROUP BY type, month_year ;
</select> </select>
<select id="getReportByYear" resultType="com.ruoyi.screen.domain.response.ZongzhiReportByYearResponse"> <select id="getReportByYear" resultType="com.ruoyi.screen.domain.response.ZongzhiReportByYearResponse">
SELECT count(*)as count,source,DATE_FORMAT(NOW(), '%Y') as year SELECT count(*)as count,source,DATE_FORMAT(NOW(), '%Y') as year

Loading…
Cancel
Save