<insert id="saveZbxx" parameterType="com.szht.entity.srgl.ZbdwxxEntity">
INSERT INTO ZBDWXX(FPDH,ZBJE,DWMC,KHH,ZH)
<foreach collection="zbdwxxList" separator="union all" item="item" open="(" close=")">
SELECT #{fpdh} AS fpdh, #{item.zbje} AS zbje, #{item.dwmc} AS dwmc, #{item.khh} AS khh, #{item.zh} AS zh FROM DUAL
</foreach>
</insert>
Mybatis批量插入
最新推荐文章于 2024-08-30 14:26:40 发布