From ee787fe1df157b30f20b3b994126d98e06cce377 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 31 May 2023 10:49:27 +0800
Subject: [PATCH] twoCoin项目修改

---
 src/main/resources/mapper/dapp/DappAKlineMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappAKlineMapper.xml b/src/main/resources/mapper/dapp/DappAKlineMapper.xml
index 6ec217f..77bbbbc 100644
--- a/src/main/resources/mapper/dapp/DappAKlineMapper.xml
+++ b/src/main/resources/mapper/dapp/DappAKlineMapper.xml
@@ -50,6 +50,15 @@
         limit 1
     </select>
 
+    <select id="selectOneByTypeAsc" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
+        select
+            a.*
+        from dapp_a_kline a
+        where type in (0,1)
+        order by a.create_time asc
+            limit 1
+    </select>
+
     <select id="selectListByTypeAndHour" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
         select
         a.*
@@ -61,4 +70,21 @@
         order by a.create_time asc
     </select>
 
+    <select id="selectOneHourByType" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
+        select
+            a.*
+        from dapp_a_kline a
+        where type = 1
+        order by a.create_time desc
+            limit 1
+    </select>
+
+    <select id="selectListByIds" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
+        select
+            a.*
+        from dapp_a_kline a
+        where id > #{min}
+          and id <![CDATA[ <= ]]> #{max}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1