From 2ca4d36345464ccd8239bf3cea3430ead3554ff7 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 16 六月 2023 16:12:05 +0800 Subject: [PATCH] 1 --- src/main/resources/mapping/WarningDetailMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapping/WarningDetailMapper.xml b/src/main/resources/mapping/WarningDetailMapper.xml index 3e63793..8d6b42b 100644 --- a/src/main/resources/mapping/WarningDetailMapper.xml +++ b/src/main/resources/mapping/WarningDetailMapper.xml @@ -70,7 +70,7 @@ <select id="selectByTimeForYj" resultMap="WarningDetailResult"> with rs as (select jcyj, jcbj from alert_config limit 1) - select id, table_name, su_yuan_id, location_name, 1 "type", create_time, value + select id, table_name, su_yuan_id, location_name, 1 "type", create_time, format(value, 2) "value" from warning_detail where create_time between #{startTime} and #{endTime} and value >= (select jcyj from rs) and value < (select jcbj from rs) @@ -79,7 +79,7 @@ <select id="selectByTimeForBj" resultMap="WarningDetailResult"> with rs as (select jcyj, jcbj from alert_config limit 1) - select id, table_name, su_yuan_id, location_name, 0 "type", create_time, value + select id, table_name, su_yuan_id, location_name, 0 "type", create_time, format(value, 2) "value" from warning_detail where create_time between #{startTime} and #{endTime} and value >= (select jcbj from rs) -- Gitblit v1.9.3