Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\CommonEntityExampleMapper.xml
<?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="common"> <sql id="condition"> <if test="limit != null"> <foreach collection="limit" item="item" index="index"> <if test="item.condition != null and item.value != null"> <if test="item.typeHandler == 0 or item.typeHandler == null"> and ${item.condition} = #{item.value} </if> <if test="item.typeHandler == 1"> and ${item.condition} like CONCAT(#{item.value},'%') </if> <if test="item.typeHandler == 2"> <![CDATA[ and ${item.condition} >= #{item.value} AND ${item.condition} <= #{item.secondValue} ]]> </if> <if test="item.typeHandler == 3"> and ${item.condition} in (${item.value}) </if> <if test="item.typeHandler == 4"> <![CDATA[ and ${item.condition} <= #{item.value,jdbcType=VARCHAR} and length(${item.condition})<=length(#{item.value,jdbcType=VARCHAR})]]> </if> <if test="item.typeHandler == 5"> <![CDATA[ and ${item.condition} <= #{item.value,jdbcType=VARCHAR} and length(${item.condition})<=length(#{item.value,jdbcType=VARCHAR})]]> </if> <if test="item.typeHandler == 6"> <![CDATA[ and ${item.condition} >= #{item.value,jdbcType=VARCHAR} and length(${item.condition})>=length(#{item.value,jdbcType=VARCHAR})]]> </if> <if test="item.typeHandler == 7"> <![CDATA[ and ${item.condition} >= #{item.value,jdbcType=VARCHAR} and length(${item.condition})>=length(#{item.value,jdbcType=VARCHAR})]]> </if> <if test="item.typeHandler == 8"> <![CDATA[ and ${item.condition} <> #{item.value} ]]> </if> <if test="item.typeHandler == 9"> <![CDATA[ and ${item.condition} not in (${item.value}) ]]> </if> </if> <if test="item.condition != null "> <if test="item.typeHandler == 10"> <![CDATA[ and ${item.condition} is null ]]> </if> <if test="item.typeHandler == 11"> <![CDATA[ and ${item.condition} is not null ]]> </if> </if> </foreach> </if> </sql> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de