insert into wms_shipping_bill( tenant_id, shipping_code, shipping_type, shipping_mode, bind_type, project_id, project_code, project_name, customer_id, customer_contact_id, customer_name, shipping_address, inventory_amount, source_bill_type, source_bill_id, source_bill_code, contract_id, contract_code, contract_name, supplier, supplier_id, contact_user, contact_number, receiver_name, receiver_phone, logistics_company, tracking_no, logistics_phone, directions, plan_arrival_time, shipping_time, received_time, completed_time, out_stock_bill_status, flow_status, shipping_status, warehouse_id, warehouse_name, remark, del_flag, create_dept, create_by, create_time, update_by, update_time ) values ( #{item.tenantId}, #{item.shippingCode}, #{item.shippingType}, #{item.shippingMode}, #{item.bindType}, #{item.projectId}, #{item.projectCode}, #{item.projectName}, #{item.customerId}, #{item.customerContactId}, #{item.customerName}, #{item.shippingAddress}, #{item.inventoryAmount}, #{item.sourceBillType}, #{item.sourceBillId}, #{item.sourceBillCode}, #{item.contractId}, #{item.contractCode}, #{item.contractName}, #{item.supplier}, #{item.supplierId}, #{item.contactUser}, #{item.contactNumber}, #{item.receiverName}, #{item.receiverPhone}, #{item.logisticsCompany}, #{item.trackingNo}, #{item.logisticsPhone}, #{item.directions}, #{item.planArrivalTime}, #{item.shippingTime}, #{item.receivedTime}, #{item.completedTime}, #{item.outStockBillStatus}, #{item.flowStatus}, #{item.shippingStatus}, #{item.warehouseId}, #{item.warehouseName}, #{item.remark}, #{item.delFlag}, #{item.createDept}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime} ) update wms_shipping_bill t t.tenant_id = #{item.tenantId}, t.shipping_code = #{item.shippingCode}, t.shipping_type = #{item.shippingType}, t.shipping_mode = #{item.shippingMode}, t.bind_type = #{item.bindType}, t.project_id = #{item.projectId}, t.project_code = #{item.projectCode}, t.project_name = #{item.projectName}, t.customer_id = #{item.customerId}, t.customer_contact_id = #{item.customerContactId}, t.customer_name = #{item.customerName}, t.shipping_address = #{item.shippingAddress}, t.inventory_amount = #{item.inventoryAmount}, t.source_bill_type = #{item.sourceBillType}, t.source_bill_id = #{item.sourceBillId}, t.source_bill_code = #{item.sourceBillCode}, t.contract_id = #{item.contractId}, t.contract_code = #{item.contractCode}, t.contract_name = #{item.contractName}, t.supplier = #{item.supplier}, t.supplier_id = #{item.supplierId}, t.contact_user = #{item.contactUser}, t.contact_number = #{item.contactNumber}, t.receiver_name = #{item.receiverName}, t.receiver_phone = #{item.receiverPhone}, t.logistics_company = #{item.logisticsCompany}, t.tracking_no = #{item.trackingNo}, t.logistics_phone = #{item.logisticsPhone}, t.directions = #{item.directions}, t.plan_arrival_time = #{item.planArrivalTime}, t.shipping_time = #{item.shippingTime}, t.received_time = #{item.receivedTime}, t.completed_time = #{item.completedTime}, t.out_stock_bill_status = #{item.outStockBillStatus}, t.flow_status = #{item.flowStatus}, t.shipping_status = #{item.shippingStatus}, t.warehouse_id = #{item.warehouseId}, t.warehouse_name = #{item.warehouseName}, t.remark = #{item.remark}, t.del_flag = #{item.delFlag}, t.create_dept = #{item.createDept}, t.create_by = #{item.createBy}, t.create_time = #{item.createTime}, t.update_by = #{item.updateBy}, t.update_time = #{item.updateTime} where t.shipping_bill_id = #{item.shippingBillId} delete from wms_shipping_bill t ${ew.getCustomSqlSegment} delete from wms_shipping_bill t where t.shipping_bill_id in #{id}