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