select order_id, device_order_id, device_sn, device_num, user_id, identity_verification, source_type, is_online, canteen_id, stall_id, mealtime_type, mealtime_name, order_date, payable_amount, discounts_amount, real_amount, account_pay_amount, external_pay_amount, refund_amount, order_time, order_type, order_state, order_refund_state, deduction_type, pay_time, pay_type, pay_channel, pay_state, pay_param, delivery_amount, packing_amount, delivery_type, comment_state, remark, create_by, create_time, update_by, update_time from order_info insert into order_info order_id, device_order_id, device_sn, device_num, user_id, identity_verification, source_type, is_online, canteen_id, stall_id, mealtime_type, mealtime_name, order_date, payable_amount, discounts_amount, real_amount, account_pay_amount, external_pay_amount, refund_amount, order_time, order_type, order_state, order_refund_state, deduction_type, pay_time, pay_type, pay_channel, pay_state, pay_param, delivery_amount, packing_amount, delivery_type, comment_state, remark, create_by, create_time, update_by, update_time, #{orderId}, #{deviceOrderId}, #{deviceSn}, #{deviceNum}, #{userId}, #{identityVerification}, #{sourceType}, #{isOnline}, #{canteenId}, #{stallId}, #{mealtimeType}, #{mealtimeName}, #{orderDate}, #{payableAmount}, #{discountsAmount}, #{realAmount}, #{accountPayAmount}, #{externalPayAmount}, #{refundAmount}, #{orderTime}, #{orderType}, #{orderState}, #{orderRefundState}, #{deductionType}, #{payTime}, #{payType}, #{payChannel}, #{payState}, #{payParam}, #{deliveryAmount}, #{packingAmount}, #{deliveryType}, #{commentState}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, insert into order_info ( order_id, device_order_id, device_sn, device_num, user_id, identity_verification, source_type, is_online, canteen_id, stall_id, mealtime_type, mealtime_name, order_date, payable_amount, discounts_amount, real_amount, account_pay_amount, external_pay_amount, refund_amount, order_time, order_type, order_state, order_refund_state, deduction_type, pay_time, pay_type, pay_channel, pay_state, pay_param, delivery_amount, packing_amount, delivery_type, comment_state, remark, create_by, update_by ) values ( #{orderInfo.orderId}, #{orderInfo.deviceOrderId}, #{orderInfo.deviceSn}, #{orderInfo.deviceNum}, #{orderInfo.userId}, #{orderInfo.identityVerification}, #{orderInfo.sourceType}, #{orderInfo.isOnline}, #{orderInfo.canteenId}, #{orderInfo.stallId}, #{orderInfo.mealtimeType}, #{orderInfo.mealtimeName}, #{orderInfo.orderDate}, #{orderInfo.payableAmount}, #{orderInfo.discountsAmount}, #{orderInfo.realAmount}, #{orderInfo.accountPayAmount}, #{orderInfo.externalPayAmount}, #{orderInfo.refundAmount}, #{orderInfo.orderTime}, #{orderInfo.orderType}, #{orderInfo.orderState}, #{orderInfo.orderRefundState}, #{orderInfo.deductionType}, #{orderInfo.payTime}, #{orderInfo.payType}, #{orderInfo.payChannel}, #{orderInfo.payState}, #{orderInfo.payParam}, #{orderInfo.deliveryAmount}, #{orderInfo.packingAmount}, #{orderInfo.deliveryType}, #{orderInfo.commentState}, #{orderInfo.remark}, #{orderInfo.createBy}, #{orderInfo.updateBy} ) update order_info device_order_id = #{deviceOrderId}, device_sn = #{deviceSn}, device_num = #{deviceNum}, user_id = #{userId}, identity_verification = #{identityVerification}, source_type = #{sourceType}, is_online = #{isOnline}, canteen_id = #{canteenId}, stall_id = #{stallId}, mealtime_type = #{mealtimeType}, mealtime_name = #{mealtimeName}, order_date = #{orderDate}, payable_amount = #{payableAmount}, discounts_amount = #{discountsAmount}, real_amount = #{realAmount}, account_pay_amount = #{accountPayAmount}, external_pay_amount = #{externalPayAmount}, refund_amount = #{refundAmount}, order_time = #{orderTime}, order_type = #{orderType}, order_state = #{orderState}, order_refund_state = #{orderRefundState}, deduction_type = #{deductionType}, pay_time = #{payTime}, pay_type = #{payType}, pay_channel = #{payChannel}, pay_state = #{payState}, pay_param = #{payParam}, delivery_amount = #{deliveryAmount}, packing_amount = #{packingAmount}, delivery_type = #{deliveryType}, comment_state = #{commentState}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where order_id = #{orderId} update order_info pay_time = now(), account_pay_amount = #{param.payAmount}, pay_state = #{param.payState}, update_by = #{param.updateBy}, update_time = now() where order_id in #{orderId} delete from order_info where order_id = #{orderId} delete from order_info where order_id in #{orderId}