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

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

diff --git a/src/main/resources/mapper/dapp/DappAKlineMapper.xml b/src/main/resources/mapper/dapp/DappAKlineMapper.xml
index f2858bb..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.*
@@ -74,7 +83,8 @@
         select
             a.*
         from dapp_a_kline a
-        where id between #{min} and #{max}
+        where id > #{min}
+          and id <![CDATA[ <= ]]> #{max}
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1