<?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="org.dromara.system.mapper.TblDzbcMultiSitePathMapper">

    <resultMap type="org.dromara.system.domain.vo.TblDzbcMultiSitePathVo" id="TblDzbcMultiSitePathResult">
        <result property="id"    column="id"    />
        <result property="name"    column="name"    />
        <result property="status"    column="status"    />
        <result property="remark"    column="remark"    />
        <result property="ext1"    column="ext1"    />
        <result property="ext2"    column="ext2"    />
    </resultMap>

    <select id="selectVoList" parameterType="org.dromara.system.domain.vo.TblDzbcMultiSitePathVo" resultMap="TblDzbcMultiSitePathResult">
        select id, name, status, remark, ext1, ext2
        from tbl_dzbc_multi_site_path
        <where>
            <if test="name != null and name != ''">
                and name like concat('%', #{name}, '%')
            </if>
            <if test="status != null">
                and status = #{status}
            </if>
        </where>
        order by id desc
    </select>

    <select id="selectVoById" parameterType="Long" resultMap="TblDzbcMultiSitePathResult">
        select id, name, status, remark, ext1, ext2
        from tbl_dzbc_multi_site_path
        where id = #{id}
    </select>

    <select id="selectVoByIds" parameterType="Collection" resultMap="TblDzbcMultiSitePathResult">
        select id, name, status, remark, ext1, ext2
        from tbl_dzbc_multi_site_path
        where id in
        <foreach item="id" collection="ids" open="(" separator="," close=")">
            #{id}
        </foreach>
    </select>

</mapper>
