create_by, create_time, update_by, update_time, id, delivery_id, order_detail_id, stock_id, stock_name, batch, num, stock_code #{item.createBy}, now(), #{item.updateBy}, now(), #{item.id}, #{item.deliveryId}, #{item.orderDetailId}, #{item.stockId}, #{item.stockName}, #{item.batch}, #{item.num}, #{item.stockCode} and id = #{record.id} and delivery_id = #{record.deliveryId} and order_detail_id = #{record.orderDetailId} and stock_id = #{record.stockId} and stock_name = #{record.stockName} and batch = #{record.batch} and num = #{record.num} and stock_code = #{record.stockCode} INSERT INTO shop_delivery_detail ( ) VALUES ( ) INSERT INTO shop_delivery_detail ( ) VALUES ( ) UPDATE shop_delivery_detail delivery_id = #{deliveryId}, order_detail_id = #{orderDetailId}, stock_id = #{stockId}, stock_name = #{stockName}, batch = #{batch}, num = #{num}, stock_code = #{stockCode}, WHERE id=#{id} UPDATE shop_delivery_detail delivery_id = #{record.deliveryId}, order_detail_id = #{record.orderDetailId}, stock_id = #{record.stockId}, stock_name = #{record.stockName}, batch = #{record.batch}, num = #{record.num}, stock_code = #{record.stockCode}, WHERE id=#{record.id} delete from shop_delivery_detail where id in #{item} DELETE FROM shop_delivery_detail where id=#{id} DELETE FROM shop_delivery_detail