From c13c98374281a6316348979841a2fb249575ac26 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 30 Nov 2021 18:43:47 +0800
Subject: [PATCH] fix
---
src/main/resources/mapper/fish/CannonOwnRecordDao.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/fish/CannonOwnRecordDao.xml b/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
index bd80702..2b2239f 100644
--- a/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
+++ b/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
@@ -6,4 +6,16 @@
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.*,
+ case when b.id is null then 2 else 1 end isHas
+ from cannon_setting a
+ left join cannon_own_record b on a.code=b.cannon_code and b.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