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


    <select id="getPageList" resultType="jnpf.model.cultivate.v2.exam.vo.V2CoverVo">
        SELECT
        c.F_Id AS id,
        c.F_CategoryId AS categoryId,
        c.F_IsSystem AS isSystem,
        c.F_Path AS path,
        c.F_LastModifyTime AS lastModifyTime,
        c.F_LastModifyUserId AS userId,
        a.F_Name AS categoryName
        FROM
        ftb_cultivate_cover_info AS c
        LEFT JOIN ftb_cultivate_cover_category AS a  on c.F_CategoryId= a.F_Id
        WHERE
        c.F_EnabledMark = 0
        <if test="params.categoryIds != null and params.categoryIds.size()>0">
            and c.F_CategoryId in
            <foreach collection="params.categoryIds" item="value" separator="," open="(" close=")">
                #{value}
            </foreach>
        </if>
    </select>
</mapper>