Blame view

ServiceCompanyFilesMapper.xml 729 Bytes
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?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="com.subsidy.mapper.ServiceCompanyFilesMapper">

    <select id="companyFiles" resultType="com.subsidy.model.ServiceCompanyFilesDO">
        SELECT
        *
        FROM
        service_company_files t
        WHERE
        t.delete_date IS NULL
        <if test="fileName != null and fileName != ''">
            AND t.file_name  like concat('%',#{fileName} ,'%')
        </if>
涂亚平 committed
15 16 17 18
        and t.tree_id in
        <foreach collection="treeIds" item="id" index="index" open="(" close=")" separator=",">
            #{id}
        </foreach>
涂亚平 committed
19 20 21 22
    </select>


</mapper>