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

    <select id="listAll" resultType="jnpf.model.cultivate.po.certificate.FtbCertificateImagesEntity">
        select F_Id       as id,
               F_Path     as path,
               F_Type     as type,
               F_IsSystem as isSystem,
               F_Sorts    as sorts
        from ftb_cultivate_certificate_image
        order by F_IsSystem desc, F_Sorts desc
    </select>

    <select id="queryMaxSort" resultType="java.lang.Integer">
        select max(F_Sorts) from ftb_cultivate_certificate_image
    </select>
</mapper>