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/SuYuanMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapping/SuYuanMapper.xml b/src/main/resources/mapping/SuYuanMapper.xml index 165b8e1..6ddee9a 100644 --- a/src/main/resources/mapping/SuYuanMapper.xml +++ b/src/main/resources/mapping/SuYuanMapper.xml @@ -103,6 +103,17 @@ </foreach> ORDER BY z ASC, x ASC, y DESC </select> + + <select id="getSuYuan500Max" resultMap="DistanceSuYuanResult"> + select id, x, y, format(c, 2) "c", u, v + from ${tableName} + where id in + <foreach collection="ids" item="item" open="(" separator="," close=")"> + #{item} + </foreach> + order by c desc + limit 1; + </select> <select id="getAlarmsAnalyse" resultMap="SuYuan2dResult"> SELECT id, x, y, c -- Gitblit v1.9.3