New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.example.erp.mapper.sd.OrderDetailMapper"> |
| | | <insert id="insertBatch" parameterType="java.util.List"> |
| | | INSERT INTO |
| | | order_detail (order_id, |
| | | order_number, |
| | | building_number, |
| | | product_id, |
| | | product_name, |
| | | price, |
| | | quantity, |
| | | gross_amount, |
| | | width, |
| | | height, |
| | | shape, |
| | | area, |
| | | gross_area, |
| | | compute_area, |
| | | compute_gross_area, |
| | | processing_note, |
| | | remarks, |
| | | bend_radius, |
| | | edging_type, |
| | | weight, |
| | | perimeter |
| | | ) |
| | | values |
| | | <foreach collection ="orderDetails" item="orderDetail" separator =","> |
| | | (#{orderDetail.orderId}, |
| | | #{orderDetail.orderNumber}, |
| | | #{orderDetail.buildingNumber}, |
| | | #{orderDetail.productId}, |
| | | #{orderDetail.productName}, |
| | | #{orderDetail.price}, |
| | | #{orderDetail.quantity}, |
| | | #{orderDetail.grossAmount}, |
| | | #{orderDetail.width}, |
| | | #{orderDetail.height}, |
| | | #{orderDetail.shape}, |
| | | #{orderDetail.area}, |
| | | #{orderDetail.grossArea}, |
| | | #{orderDetail.computeArea}, |
| | | #{orderDetail.computeGrossArea}, |
| | | #{orderDetail.processingNote}, |
| | | #{orderDetail.remarks}, |
| | | #{orderDetail.bendRadius}, |
| | | #{orderDetail.edgingType}, |
| | | #{orderDetail.weight}, |
| | | #{orderDetail.perimeter} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | </mapper> |