标签:foreach for index rri collect ram arch name trim
<update id="updateParam" parameterType="java.util.List"> update searchsystemconfigproperties <trim prefix="set" suffixOverrides=","> <trim prefix="keyValue = case" suffix="end,"> <foreach collection="parameterList" item="i" index="index"> <if test="i.keyValue!=null and i.keyValue!= ‘‘ "> when keyName=#{i.keyName} then #{i.keyValue} </if> </foreach> </trim> </trim> where <foreach collection="parameterList" separator="or" item="i" index="index" > keyName=#{i.keyName} </foreach> </update>
标签:foreach for index rri collect ram arch name trim
原文地址:https://www.cnblogs.com/yongguang1990/p/10223836.html