mybatis中mapper.xml文件详解

CDATA的形式如下:

<select id="queryByEmployee" resultMap="BaseResultMap" parameterType="com.xc.web.domain.App">
        select
        <include refid="Base_Column_List"/>
        from app
        <where>
            <if test=" businessid != null and businessid !=''">
                and businessid = #{businessid}
            if>
            <if test=" status != null">
                 #{status}]]>
            if>
        where>
    select>

你可能感兴趣的:(mybatis)