From 1e56643468a59f9ebacfbc6235bb6e717bfb71da Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 16 Aug 2023 11:24:13 +0800
Subject: [PATCH] 后台修改

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

diff --git a/src/main/resources/mapper/dapp/DappAKlineMapper.xml b/src/main/resources/mapper/dapp/DappAKlineMapper.xml
index 4524641..f88e053 100644
--- a/src/main/resources/mapper/dapp/DappAKlineMapper.xml
+++ b/src/main/resources/mapper/dapp/DappAKlineMapper.xml
@@ -53,7 +53,16 @@
         select
         a.*
         from dapp_a_kline a
-        where type in (0,1)
+        where a.type in (0,1)
+        order by a.create_time desc
+        limit 1
+    </select>
+
+    <select id="selectDayByType" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
+        select
+        a.*
+        from dapp_a_kline a
+        where a.type = 2
         order by a.create_time desc
         limit 1
     </select>

--
Gitblit v1.9.1