fix
Helius
2021-11-30 de00eeb45e3aee0cbb5f62210c05ef32bb7478b4
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>