首页 > 其他 > 详细

mybaties批量更新

时间:2019-01-05 12:38:57      阅读:132      评论:0      收藏:0      [点我收藏+]
<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>

  

mybaties批量更新

原文:https://www.cnblogs.com/yongguang1990/p/10223836.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!