<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="jnpf.cultivate.mapper.FtbCourseGainedLikeMapper" >
<!--    删除指定用户在指定心得下的点赞-->
    <delete id="deleteLikeByGainedId">
        delete  from  ftb_cultivate_course_gained_like
        where  F_GainedId = #{gainedId} and F_LikeUserId = #{likeUserId}
    </delete>

    <!--    获取用户有无对该心得点赞-->
    <select id="getMyLike" resultType="java.lang.Integer">
        select  count(0) from  ftb_cultivate_course_gained_like where F_GainedId = #{GainedId} and F_LikeUserId = #{likeUserId}
    </select>
</mapper>