From 865f44e91ce41f5e60b1e5f430e9f7231817a5f9 Mon Sep 17 00:00:00 2001 From: zhao-meiyu <2970484253@qq.com> Date: Thu, 25 Jan 2024 12:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9F=E7=9F=A5=E7=BB=9F=E8=AE=A1=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/business/DcPerceivedEventsWarningMapper.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml index 7e745565..126e7205 100644 --- a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml @@ -223,8 +223,9 @@ WHEN MONTH(create_time) BETWEEN 7 AND 9 THEN '第三季度' ELSE '第四季度' END AS QUARTER - from dc_warning where stake_mark_id=#{stakeMark} - AND direction=#{direction} + from dc_warning where stake_mark_id=#{stakeMark} and + YEAR(create_time) =DATE_FORMAT(#{createTime},'%Y') + AND direction=#{direction} GROUP BY QUARTER ORDER BY QUARTER;