<?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.FtbCultivateLearnTaskReminderRuleMapper">
    <!--任务课程-->
    <select id="getLearnTaskCourseList" resultType="jnpf.model.cultivate.dto.learn.FtbCultivateLearnTaskCourseInfoDto">
        SELECT b.F_CourseId as courseId,a.F_Name as courseName,b.F_IsRequired as isRequired, a.F_Format format,a.F_IsGrounding isGrounding
        FROM ftb_cultivate_course a JOIN ftb_cultivate_learn_task_course b ON a.F_Id = b.F_CourseId
        where a.F_EnabledMark = 0  and a.F_IsGrounding = 1 and b.F_TaskId = #{taskId}
    </select>

</mapper>