From 54ef34c7d62acb35ed7b4928e58c8e9db3c90107 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 25 Nov 2021 10:20:32 +0800
Subject: [PATCH] 20211125  fish

---
 src/main/resources/mapper/fish/CannonOwnRecordDao.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/fish/CannonOwnRecordDao.xml b/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
index bd80702..ba3b187 100644
--- a/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
+++ b/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
@@ -6,4 +6,15 @@
         select a.* from cannon_own_record a where a.member_id = #{memberId} and a.cannon_code = #{code}
     </select>
 
+    <select id="selectCannonOwnRecordsByMemberId" resultType="com.xcong.excoin.modules.fish.vo.OwnCannonVo">
+        select a.*,b.gold_consume goldConsume
+        from cannon_own_record a
+        left join cannon_setting b on a.cannon_code = b.code
+        where a.member_id = #{memberId}
+    </select>
+
+    <select id="selectCannonOwnRecordsByIdAndMemberId" resultType="com.xcong.excoin.modules.fish.entity.CannonOwnRecord">
+        select a.* from cannon_own_record a where a.member_id = #{memberId} and a.id = #{id}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1