From 3d2350a16eaf71c67d1de4cfa82751e775961aab Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 19 五月 2023 09:44:18 +0800 Subject: [PATCH] 1 --- src/main/resources/mapping/QxshMapper.xml | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapping/QxshMapper.xml b/src/main/resources/mapping/QxshMapper.xml index 75e1ed4..162fbd6 100644 --- a/src/main/resources/mapping/QxshMapper.xml +++ b/src/main/resources/mapping/QxshMapper.xml @@ -4,7 +4,15 @@ <select id="selectByTime" resultType="com.yssh.entity.Qxsh"> select id, name, lon, lat, value, time from yssh_qxsh - where time =#{time} + where time = #{time} order by name; </select> + + <select id="selectMonthTop10" resultType="com.yssh.entity.Qxsh"> + select id, name, format(value, 2) "value", time + from yssh_qxsh + where time like #{time} and name like 'AI-%' + order by value desc + limit 10; + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3