Helius
2021-11-26 4017fe347792c7e28695c455a40874f0c647cc9b
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,b.cannon_img cannonImg,b.bullet_img bulletImg
        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 0 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">