INSERT INTO gen_booking_info
(ground_booking_id,serial,venues_info_id,venues_name,venues_project_id,project_name,user_id,nick_name,id_card_number,
phone_number,order_type,creator,gmt_create,modifier,gmt_modified,is_delete)
VALUES
(#{groundBookingId},#{serial},#{venuesInfoId},#{venuesName},#{venuesProjectId},#{projectName},#{userId},#{nickName},#{idCardNumber},
#{phoneNumber},#{orderType},#{creator},#{gmtCreate},#{modifier},#{gmtModified},#{isDelete})
INSERT INTO gen_booking_item
(booking_item_id,booking_info_id,ground_item_id,ground_name,booking_order_date,time_str,time_end,price,arrive_type,
creator,gmt_create,modifier,gmt_modified,is_delete)
VALUES
(#{bookingItemId},#{bookingInfoId},#{groundItemId},#{groundName},#{bookingOrderDate},#{timeStr},#{timeEnd},
#{price},#{arriveType},#{creator},#{gmtCreate},#{modifier},#{gmtModified},#{isDelete})
UPDATE gen_booking_info SET
order_type = '1',
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
user_id = #{userId}
AND ground_booking_id = #{groundBookingId}
UPDATE gen_booking_item SET
order_type = '1',
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
creator = #{userId}
AND booking_info_id = #{groundBookingId}
UPDATE gen_booking_item SET
order_type = '1',
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
creator = #{userId}
AND booking_item_id = #{bookingItemId}