mybatis中mapper.xml文件详解

来源:互联网 发布:数控车床g84攻牙编程 编辑:程序博客网 时间:2024/06/05 01:07

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">                <![CDATA[  and status > #{status}]]>            </if>        </where>    </select>
0 0
原创粉丝点击