From da8328c2f9d836b14f08a65f7b29b98fa09283f2 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 19 五月 2023 10:41:37 +0800 Subject: [PATCH] 1 --- src/main/resources/mapping/QxshMapper.xml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapping/QxshMapper.xml b/src/main/resources/mapping/QxshMapper.xml index 162fbd6..69df436 100644 --- a/src/main/resources/mapping/QxshMapper.xml +++ b/src/main/resources/mapping/QxshMapper.xml @@ -9,10 +9,20 @@ </select> <select id="selectMonthTop10" resultType="com.yssh.entity.Qxsh"> - select id, name, format(value, 2) "value", time + select id, name, format(value, 3) "value", time from yssh_qxsh where time like #{time} and name like 'AI-%' order by value desc limit 10; </select> + + <select id="select3Hours" resultType="com.yssh.entity.Qxsh"> + select id, name, format(value, 3) "value", time + from yssh_qxsh + where name like 'AI-%' and time in + <foreach collection="times" item="time" open="(" separator="," close=")"> + #{time} + </foreach> + order by name, time; + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3