<select id="testListFundAccMapper" parameterType="hashmap" resultType="java.util.HashMap" > select * from t_test <where> <if test="ID1 !=null and ID1 !=''"> ID1 like CONCAT(CONCAT('%',#{ID1}),'%') <!--ID1 like '%${ID1}%' --> </if> </where> </select> <insert id="testInsertFundAccMapper" parameterType="hashmap"> insert into t_test (ID1,NAME1) values (#{ID1},#{NAME1}) </insert> <update id="testUpdateFundAccMapper" parameterType="hashmap"> update t_test set NAME1=#{NAME1} where ID1=#{ID1} </update> <insert id="testDeleteFundAccMapper" parameterType="hashmap"> delete t_test where ID1 = #{ID1} </insert>