<?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.FtbCultivateLearnTaskPhaseMapper">

    <select id="groupCountNum" resultType="jnpf.model.cultivate.dto.learn.BatchCommonCountDto">
        SELECT F_TaskId AS selectKey, COUNT(*) AS num
        FROM ftb_cultivate_learn_task_phase
        WHERE F_TaskId IN
        <foreach collection="taskIds" item="taskId" open="(" separator="," close=")">
            #{taskId}
        </foreach>
        AND F_EnableMark = 0
        GROUP BY F_TaskId
    </select>

</mapper>