spring boot 批量新增

mapping/PurchaseOrderLineDAO.xml

"insertList">
        insert into purchase_order_line (order_id, item_no, send_qty, line_qty,memo, oper_id, oper_date)
        values
        <foreach collection="list" item="item" separator="," index="index">
            (#{item.orderId,jdbcType=INTEGER},#{item.itemNo,jdbcType=VARCHAR}, #{item.sendQty,jdbcType=TINYINT},
            #{item.lineQty,jdbcType=INTEGER}, #{item.memo,jdbcType=VARCHAR},
            #{item.operId,jdbcType=VARCHAR}, now())
        foreach>
    

 

转载于:https://www.cnblogs.com/choucat/p/11388580.html

你可能感兴趣的:(spring boot 批量新增)