From 498718ad129e8a9010e6f2af2fde2f9d4508fd32 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 09 六月 2023 10:41:49 +0800 Subject: [PATCH] 修改本月预警报警统计接口 --- src/main/resources/mapping/WarningDetailMapper.xml | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapping/WarningDetailMapper.xml b/src/main/resources/mapping/WarningDetailMapper.xml index 69be83f..cb188c0 100644 --- a/src/main/resources/mapping/WarningDetailMapper.xml +++ b/src/main/resources/mapping/WarningDetailMapper.xml @@ -27,7 +27,7 @@ AND type = #{type} </select> - <select id="selectWarningDetailByMap" parameterType="java.util.Map" resultMap="WarningVoResult"> + <select id="selectWarningDetailByMap_old" parameterType="java.util.Map" resultMap="WarningVoResult"> SELECT location_name, su_yuan_id, value FROM warning_detail WHERE date_format(create_time, '%Y%m%d%H%I%S') >= date_format(#{startTime}, '%Y%m%d%H%I%S') @@ -35,6 +35,12 @@ AND type = #{type} </select> + <select id="selectWarningDetailByMap" parameterType="java.util.Map" resultMap="WarningVoResult"> + select location_name, su_yuan_id, value + from warning_detail + where create_time between #{startTime} and #{endTime} and type = #{type}; + </select> + <select id="selectWarningDayCountByMap_old" parameterType="java.util.Map" resultType="java.util.Map"> SELECT date_format(create_time,'%Y%m%d') AS createTime, count(id) AS num FROM warning_detail -- Gitblit v1.9.3