标签:string for ext word item bsp cti param 写法
xml:
<insert id="insertUser" parameterType="java.util.Map"> insert into user ( id, <foreach collection="columnMap" item="value" index="key" separator=","> ${key} </foreach> ) values ( SEQ_USER.NEXTVAL, <foreach collection="columnMap" item="value" index="key" separator=","> #{value} </foreach> ) </insert>
代码:
Map<String, Object> columnMap = new HashMap<>(); columnMap.put("name", "xiaoming"); columnMap.put("password", "123"); columnMap.put("columnMap", columnMap); userService.insertProvBatchDoc(columnMap);
标签:string for ext word item bsp cti param 写法
原文地址:https://www.cnblogs.com/libin6505/p/10623098.html