From c8cd5a4e1891407c38bc63d4167f6288747e5eca Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 29 Nov 2021 10:44:36 +0800
Subject: [PATCH] change xct to xcc

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

diff --git a/src/main/resources/mapper/fish/CannonOwnRecordDao.xml b/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
index ba3b187..2b2239f 100644
--- a/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
+++ b/src/main/resources/mapper/fish/CannonOwnRecordDao.xml
@@ -7,10 +7,11 @@
     </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
+               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">

--
Gitblit v1.9.1