xiaoyong931011
2021-11-24 fe1b0a2b6dd9f7798b55050b9a8bc3555dc21f0b
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>