id, order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason, settlement_time, refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag delete from order_basic_info where id = #{id,jdbcType=INTEGER} insert into order_basic_info (order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason, settlement_time, refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag ) values (#{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, #{orderStatus,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{stationId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR}, #{logicCard,jdbcType=VARCHAR}, #{vinCode,jdbcType=VARCHAR}, #{startMode,jdbcType=VARCHAR}, #{thirdPartyType,jdbcType=VARCHAR}, #{payMode,jdbcType=VARCHAR}, #{payStatus,jdbcType=VARCHAR}, #{payAmount,jdbcType=DECIMAL}, #{payTime,jdbcType=TIMESTAMP}, #{plateNumber,jdbcType=VARCHAR}, #{orderAmount,jdbcType=DECIMAL}, #{virtualAmount,jdbcType=DECIMAL}, #{groupCode,jdbcType=VARCHAR}, #{discountAmount,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL}, #{actualReceivedAmount,jdbcType=DECIMAL}, #{remedialAmount,jdbcType=DECIMAL}, #{chargeStartTime,jdbcType=TIMESTAMP}, #{chargeEndTime,jdbcType=TIMESTAMP}, #{startType,jdbcType=VARCHAR}, #{reservedStartTime,jdbcType=TIMESTAMP},#{reservedEndTime,jdbcType=TIMESTAMP}, #{startSoc,jdbcType=VARCHAR}, #{endSoc,jdbcType=VARCHAR}, #{stopReasonCode,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR}, #{settlementTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL}, #{refundStatus,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR} ) insert into order_basic_info order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code,, reason, settlement_time, refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, #{orderStatus,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{stationId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR}, #{logicCard,jdbcType=VARCHAR}, #{vinCode,jdbcType=VARCHAR}, #{startMode,jdbcType=VARCHAR}, #{thirdPartyType,jdbcType=VARCHAR}, #{payMode,jdbcType=VARCHAR}, #{payStatus,jdbcType=VARCHAR}, #{payAmount,jdbcType=DECIMAL}, #{payTime,jdbcType=TIMESTAMP}, #{plateNumber,jdbcType=VARCHAR}, #{orderAmount,jdbcType=DECIMAL}, #{virtualAmount,jdbcType=DECIMAL}, #{groupCode,jdbcType=VARCHAR}, #{discountAmount,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL}, #{actualReceivedAmount,jdbcType=DECIMAL}, #{remedialAmount,jdbcType=DECIMAL}, #{chargeStartTime,jdbcType=TIMESTAMP}, #{chargeEndTime,jdbcType=TIMESTAMP}, #{startType,jdbcType=VARCHAR}, #{reservedStartTime}, #{reservedEndTime}, #{startSoc,jdbcType=VARCHAR}, #{endSoc,jdbcType=VARCHAR}, #{stopReasonCode,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR}, #{settlementTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL}, #{refundStatus,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}, update order_basic_info order_code = #{orderCode,jdbcType=VARCHAR}, transaction_code = #{transactionCode,jdbcType=VARCHAR}, order_status = #{orderStatus,jdbcType=VARCHAR}, member_id = #{memberId,jdbcType=VARCHAR}, station_id = #{stationId,jdbcType=VARCHAR}, merchant_id = #{merchantId,jdbcType=VARCHAR}, pile_sn = #{pileSn,jdbcType=VARCHAR}, connector_code = #{connectorCode,jdbcType=VARCHAR}, pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, logic_card = #{logicCard,jdbcType=VARCHAR}, vin_code = #{vinCode,jdbcType=VARCHAR}, start_mode = #{startMode,jdbcType=VARCHAR}, third_party_type = #{thirdPartyType,jdbcType=VARCHAR}, pay_mode = #{payMode,jdbcType=VARCHAR}, pay_status = #{payStatus,jdbcType=VARCHAR}, pay_amount = #{payAmount,jdbcType=DECIMAL}, pay_time = #{payTime,jdbcType=TIMESTAMP}, plate_number = #{plateNumber,jdbcType=VARCHAR}, order_amount = #{orderAmount,jdbcType=DECIMAL}, virtual_amount = #{virtualAmount,jdbcType=DECIMAL}, group_code = #{groupCode,jdbcType=VARCHAR}, discount_amount = #{discountAmount,jdbcType=DECIMAL}, settle_amount = #{settleAmount,jdbcType=DECIMAL}, actual_received_amount = #{actualReceivedAmount,jdbcType=DECIMAL}, remedial_amount = #{remedialAmount,jdbcType=DECIMAL}, charge_start_time = #{chargeStartTime,jdbcType=TIMESTAMP}, charge_end_time = #{chargeEndTime,jdbcType=TIMESTAMP}, start_type = #{startType,jdbcType=VARCHAR}, reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP}, reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP}, start_soc = #{startSoc,jdbcType=VARCHAR}, end_soc = #{endSoc,jdbcType=VARCHAR}, stop_reason_code = #{stopReasonCode,jdbcType=VARCHAR}, reason = #{reason,jdbcType=VARCHAR}, settlement_time = #{settlementTime,jdbcType=TIMESTAMP}, refund_amount = #{refundAmount,jdbcType=DECIMAL}, refund_status = #{refundStatus,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR}, where id = #{id,jdbcType=INTEGER} update order_basic_info set order_code = #{orderCode,jdbcType=VARCHAR}, transaction_code = #{transactionCode,jdbcType=VARCHAR}, order_status = #{orderStatus,jdbcType=VARCHAR}, member_id = #{memberId,jdbcType=VARCHAR}, station_id = #{stationId,jdbcType=VARCHAR}, merchant_id = #{merchantId,jdbcType=VARCHAR}, pile_sn = #{pileSn,jdbcType=VARCHAR}, connector_code = #{connectorCode,jdbcType=VARCHAR}, pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, logic_card = #{logicCard,jdbcType=VARCHAR}, vin_code = #{vinCode,jdbcType=VARCHAR}, start_mode = #{startMode,jdbcType=VARCHAR}, third_party_type = #{thirdPartyType,jdbcType=VARCHAR}, pay_mode = #{payMode,jdbcType=VARCHAR}, pay_status = #{payStatus,jdbcType=VARCHAR}, pay_amount = #{payAmount,jdbcType=DECIMAL}, pay_time = #{payTime,jdbcType=TIMESTAMP}, plate_number = #{plateNumber,jdbcType=VARCHAR}, order_amount = #{orderAmount,jdbcType=DECIMAL}, virtual_amount = #{virtualAmount,jdbcType=DECIMAL}, group_code = #{groupCode,jdbcType=VARCHAR}, discount_amount = #{discountAmount,jdbcType=DECIMAL}, settle_amount = #{settleAmount,jdbcType=DECIMAL}, actual_received_amount = #{actualReceivedAmount,jdbcType=DECIMAL}, remedial_amount = #{remedialAmount,jdbcType=DECIMAL}, charge_start_time = #{chargeStartTime,jdbcType=TIMESTAMP}, charge_end_time = #{chargeEndTime,jdbcType=TIMESTAMP}, start_type = #{startType,jdbcType=VARCHAR}, reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP}, reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP}, start_soc = #{startSoc,jdbcType=VARCHAR}, end_soc = #{endSoc,jdbcType=VARCHAR}, stop_reason_code = #{stopReasonCode,jdbcType=VARCHAR}, reason = #{reason,jdbcType=VARCHAR}, settlement_time = #{settlementTime,jdbcType=TIMESTAMP}, refund_amount = #{refundAmount,jdbcType=DECIMAL}, refund_status = #{refundStatus,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR} where id = #{id,jdbcType=INTEGER} update order_basic_info when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.transactionCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.orderStatus,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.merchantId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.pileSn,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.connectorCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.pileConnectorCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.logicCard,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.vinCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.startMode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.thirdPartyType,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.payMode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.payStatus,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.payAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.payTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.plateNumber,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.orderAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.virtualAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.groupCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.discountAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.actualReceivedAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.remedialAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.chargeStartTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.chargeEndTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.startType,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.reservedStartTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.reservedEndTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.startSoc,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.endSoc,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.stopReasonCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.reason,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.settlementTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.refundAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.refundStatus,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} where id in #{item.id,jdbcType=INTEGER} update order_basic_info when id = #{item.id,jdbcType=INTEGER} then #{item.orderCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.transactionCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.orderStatus,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.memberId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.stationId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.merchantId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.pileSn,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.connectorCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.pileConnectorCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.logicCard,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.vinCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.startMode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.thirdPartyType,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.payMode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.payStatus,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.payAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.payTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.plateNumber,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.orderAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.virtualAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.groupCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.discountAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.settleAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.actualReceivedAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.remedialAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.chargeStartTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.chargeEndTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.startType,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.reservedStartTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.reservedEndTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.startSoc,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.endSoc,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.stopReasonCode,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.reason,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.settlementTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.refundAmount,jdbcType=DECIMAL} when id = #{item.id,jdbcType=INTEGER} then #{item.refundStatus,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} where id in #{item.id,jdbcType=INTEGER} insert into order_basic_info (order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason, settlement_time, refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag ) values (#{item.orderCode,jdbcType=VARCHAR}, #{item.transactionCode,jdbcType=VARCHAR}, #{item.orderStatus,jdbcType=VARCHAR}, #{item.memberId,jdbcType=VARCHAR}, #{item.stationId,jdbcType=VARCHAR}, #{item.merchantId,jdbcType=VARCHAR}, #{item.pileSn,jdbcType=VARCHAR}, #{item.connectorCode,jdbcType=VARCHAR}, #{item.pileConnectorCode,jdbcType=VARCHAR}, #{item.logicCard,jdbcType=VARCHAR}, #{item.vinCode,jdbcType=VARCHAR}, #{item.startMode,jdbcType=VARCHAR}, #{item.thirdPartyType,jdbcType=VARCHAR}, #{item.payMode,jdbcType=VARCHAR}, #{item.payStatus,jdbcType=VARCHAR}, #{item.payAmount,jdbcType=DECIMAL}, #{item.payTime,jdbcType=TIMESTAMP}, #{item.plateNumber,jdbcType=VARCHAR}, #{item.orderAmount,jdbcType=DECIMAL}, #{item.virtualAmount,jdbcType=DECIMAL}, #{item.groupCode,jdbcType=VARCHAR}, #{item.discountAmount,jdbcType=DECIMAL}, #{item.settleAmount,jdbcType=DECIMAL}, #{item.actualReceivedAmount,jdbcType=DECIMAL}, #{item.remedialAmount,jdbcType=DECIMAL}, #{item.chargeStartTime,jdbcType=TIMESTAMP}, #{item.chargeEndTime,jdbcType=TIMESTAMP}, #{item.startType,jdbcType=VARCHAR}, #{item.reservedStartTime,jdbcType=TIMESTAMP}, #{item.reservedEndTime,jdbcType=TIMESTAMP}, #{item.startSoc,jdbcType=VARCHAR}, #{item.endSoc,jdbcType=VARCHAR}, #{item.stopReasonCode,jdbcType=VARCHAR}, #{item.reason,jdbcType=VARCHAR}, #{item.settlementTime,jdbcType=TIMESTAMP}, #{item.refundAmount,jdbcType=DECIMAL}, #{item.refundStatus,jdbcType=VARCHAR}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR} ) insert into order_basic_info id, order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason, settlement_time, refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag, values #{id,jdbcType=INTEGER}, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, #{orderStatus,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{stationId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR}, #{logicCard,jdbcType=VARCHAR}, #{vinCode,jdbcType=VARCHAR}, #{startMode,jdbcType=VARCHAR}, #{thirdPartyType,jdbcType=VARCHAR}, #{payMode,jdbcType=VARCHAR}, #{payStatus,jdbcType=VARCHAR}, #{payAmount,jdbcType=DECIMAL}, #{payTime,jdbcType=TIMESTAMP}, #{plateNumber,jdbcType=VARCHAR}, #{orderAmount,jdbcType=DECIMAL}, #{virtualAmount,jdbcType=DECIMAL}, #{groupCode,jdbcType=VARCHAR}, #{discountAmount,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL}, #{actualReceivedAmount,jdbcType=DECIMAL}, #{remedialAmount,jdbcType=DECIMAL}, #{chargeStartTime,jdbcType=TIMESTAMP}, #{chargeEndTime,jdbcType=TIMESTAMP}, #{startType,jdbcType=VARCHAR}, #{reservedStartTime,jdbcType=TIMESTAMP}, #{reservedEndTime,jdbcType=TIMESTAMP}, #{startSoc,jdbcType=VARCHAR}, #{endSoc,jdbcType=VARCHAR}, #{stopReasonCode,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR}, #{settlementTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL}, #{refundStatus,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}, on duplicate key update id = #{id,jdbcType=INTEGER}, order_code = #{orderCode,jdbcType=VARCHAR}, transaction_code = #{transactionCode,jdbcType=VARCHAR}, order_status = #{orderStatus,jdbcType=VARCHAR}, member_id = #{memberId,jdbcType=VARCHAR}, station_id = #{stationId,jdbcType=VARCHAR}, merchant_id = #{merchantId,jdbcType=VARCHAR}, pile_sn = #{pileSn,jdbcType=VARCHAR}, connector_code = #{connectorCode,jdbcType=VARCHAR}, pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, logic_card = #{logicCard,jdbcType=VARCHAR}, vin_code = #{vinCode,jdbcType=VARCHAR}, start_mode = #{startMode,jdbcType=VARCHAR}, third_party_type = #{thirdPartyType,jdbcType=VARCHAR}, pay_mode = #{payMode,jdbcType=VARCHAR}, pay_status = #{payStatus,jdbcType=VARCHAR}, pay_amount = #{payAmount,jdbcType=DECIMAL}, pay_time = #{payTime,jdbcType=TIMESTAMP}, plate_number = #{plateNumber,jdbcType=VARCHAR}, order_amount = #{orderAmount,jdbcType=DECIMAL}, virtual_amount = #{virtualAmount,jdbcType=DECIMAL}, group_code = #{groupCode,jdbcType=VARCHAR}, discount_amount = #{discountAmount,jdbcType=DECIMAL}, settle_amount = #{settleAmount,jdbcType=DECIMAL}, actual_received_amount = #{actualReceivedAmount,jdbcType=DECIMAL}, remedial_amount = #{remedialAmount,jdbcType=DECIMAL}, charge_start_time = #{chargeStartTime,jdbcType=TIMESTAMP}, charge_end_time = #{chargeEndTime,jdbcType=TIMESTAMP}, start_type = #{startType,jdbcType=VARCHAR}, reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP}, reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP}, start_soc = #{startSoc,jdbcType=VARCHAR}, end_soc = #{endSoc,jdbcType=VARCHAR}, stop_reason_code = {stopReasonCode,jdbcType=VARCHAR}, reason = #{reason,jdbcType=VARCHAR}, settlement_time = #{settlementTime,jdbcType=TIMESTAMP}, refund_amount = #{refundAmount,jdbcType=DECIMAL}, refund_status = #{refundStatus,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR}, insert into order_basic_info id, order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason, settlement_time, refund_amount, refund_status, create_by, create_time, update_by, update_time, del_flag, values #{id,jdbcType=INTEGER}, #{orderCode,jdbcType=VARCHAR}, #{transactionCode,jdbcType=VARCHAR}, #{orderStatus,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{stationId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode,jdbcType=VARCHAR}, #{pileConnectorCode,jdbcType=VARCHAR}, #{logicCard,jdbcType=VARCHAR}, #{vinCode,jdbcType=VARCHAR}, #{startMode,jdbcType=VARCHAR}, #{thirdPartyType,jdbcType=VARCHAR}, #{payMode,jdbcType=VARCHAR}, #{payStatus,jdbcType=VARCHAR}, #{payAmount,jdbcType=DECIMAL}, #{payTime,jdbcType=TIMESTAMP}, #{plateNumber,jdbcType=VARCHAR}, #{orderAmount,jdbcType=DECIMAL}, #{virtualAmount,jdbcType=DECIMAL}, #{groupCode,jdbcType=VARCHAR}, #{discountAmount,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL}, #{actualReceivedAmount,jdbcType=DECIMAL}, #{remedialAmount,jdbcType=DECIMAL}, #{chargeStartTime,jdbcType=TIMESTAMP}, #{chargeEndTime,jdbcType=TIMESTAMP}, #{startType,jdbcType=VARCHAR}, #{reservedStartTime,jdbcType=TIMESTAMP}, #{reservedEndTime,jdbcType=TIMESTAMP}, #{startSoc,jdbcType=VARCHAR}, #{endSoc,jdbcType=VARCHAR}, #{stopReasonCode,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR}, #{settlementTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL}, #{refundStatus,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR}, on duplicate key update id = #{id,jdbcType=INTEGER}, order_code = #{orderCode,jdbcType=VARCHAR}, transaction_code = #{transactionCode,jdbcType=VARCHAR}, order_status = #{orderStatus,jdbcType=VARCHAR}, member_id = #{memberId,jdbcType=VARCHAR}, station_id = #{stationId,jdbcType=VARCHAR}, merchant_id = #{merchantId,jdbcType=VARCHAR}, pile_sn = #{pileSn,jdbcType=VARCHAR}, connector_code = #{connectorCode,jdbcType=VARCHAR}, pile_connector_code = #{pileConnectorCode,jdbcType=VARCHAR}, logic_card = #{logicCard,jdbcType=VARCHAR}, vin_code = #{vinCode,jdbcType=VARCHAR}, start_mode = #{startMode,jdbcType=VARCHAR}, third_party_type = #{thirdPartyType,jdbcType=VARCHAR}, pay_mode = #{payMode,jdbcType=VARCHAR}, pay_status = #{payStatus,jdbcType=VARCHAR}, pay_amount = #{payAmount,jdbcType=DECIMAL}, pay_time = #{payTime,jdbcType=TIMESTAMP}, plate_number = #{plateNumber,jdbcType=VARCHAR}, order_amount = #{orderAmount,jdbcType=DECIMAL}, virtual_amount = #{virtualAmount,jdbcType=DECIMAL}, group_code = #{groupCode,jdbcType=VARCHAR}, discount_amount = #{discountAmount,jdbcType=DECIMAL}, settle_amount = #{settleAmount,jdbcType=DECIMAL}, actual_received_amount = #{actualReceivedAmount,jdbcType=DECIMAL}, remedial_amount = #{remedialAmount,jdbcType=DECIMAL}, charge_start_time = #{chargeStartTime,jdbcType=TIMESTAMP}, charge_end_time = #{chargeEndTime,jdbcType=TIMESTAMP}, start_type = #{startType,jdbcType=VARCHAR}, reserved_start_time = #{reservedStartTime,jdbcType=TIMESTAMP}, reserved_end_time = #{reservedEndTime,jdbcType=TIMESTAMP}, start_soc = #{startSoc,jdbcType=VARCHAR}, end_soc = #{endSoc,jdbcType=VARCHAR}, stop_reason_code = #{stopReasonCode,jdbcType=VARCHAR}, reason = #{reason,jdbcType=VARCHAR}, settlement_time = #{settlementTime,jdbcType=TIMESTAMP}, refund_amount = #{refundAmount,jdbcType=DECIMAL}, refund_status = #{refundStatus,jdbcType=VARCHAR}, create_by = #{createBy,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_by = #{updateBy,jdbcType=VARCHAR}, update_time = #{updateTime,jdbcType=TIMESTAMP}, del_flag = #{delFlag,jdbcType=CHAR}, select from order_basic_info id, order_code, total_used_electricity, total_order_amount, total_electricity_amount, total_service_amount, sharp_price, sharp_used_electricity, sharp_electricity_price, sharp_service_price, sharp_amount, peak_price, peak_used_electricity, peak_electricity_price, peak_service_price, peak_amount, flat_price, flat_used_electricity, flat_electricity_price, flat_service_price, flat_amount, valley_price, valley_used_electricity, valley_electricity_price, valley_service_price, valley_amount, create_by, create_time, update_by, update_time, del_flag insert into order_basic_info order_code, transaction_code, order_status, member_id, station_id, merchant_id, pile_sn, connector_code, pile_connector_code, logic_card, vin_code, start_mode, third_party_type, pay_mode, pay_status, pay_amount, pay_time, plate_number, order_amount, virtual_amount, settle_amount, actual_received_amount, charge_start_time, charge_end_time, start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason, settlement_time, refund_amount, create_by, create_time, update_by, update_time, del_flag, #{orderCode}, #{transactionCode}, #{orderStatus}, #{memberId}, #{stationId}, #{merchantId}, #{pileSn,jdbcType=VARCHAR}, #{connectorCode}, #{pileConnectorCode}, #{logicCard}, #{vinCode,jdbcType=VARCHAR}, #{startMode}, #{thirdPartyType}, #{payMode}, #{payStatus}, #{payAmount}, #{payTime}, #{plateNumber}, #{orderAmount}, #{virtualAmount}, #{settleAmount}, #{actualReceivedAmount}, #{chargeStartTime}, #{chargeEndTime}, #{startType}, #{reservedStartTime}, #{reservedEndTime}, #{startSoc}, #{endSoc}, #{stopReasonCode}, #{reason}, #{settlementTime}, #{refundAmount}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{delFlag}, update order_basic_info order_code = #{orderCode}, order_status = #{orderStatus}, member_id = #{memberId}, station_id = #{stationId}, merchant_id = #{merchantId}, pile_sn = #{pileSn}, connector_code = #{connectorCode}, pile_connector_code = #{pileConnectorCode}, logic_card = #{logicCard}, vin_code = #{vinCode}, start_mode = #{startMode}, third_party_type = #{thirdPartyType}, pay_mode = #{payMode}, pay_status = #{payStatus}, pay_amount = #{payAmount}, pay_time = #{payTime}, plate_number = #{plateNumber}, order_amount = #{orderAmount}, virtual_amount = #{virtualAmount}, group_code = #{groupCode}, discount_amount = #{discountAmount}, settle_amount = #{settleAmount}, actual_received_amount = #{actualReceivedAmount}, charge_start_time = #{chargeStartTime}, charge_end_time = #{chargeEndTime}, start_type = #{startType}, start_soc = #{startSoc}, end_soc = #{endSoc}, stop_reason_code = #{stopReasonCode}, reason = #{reason}, settlement_time = #{settlementTime}, refund_amount = #{refundAmount}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, del_flag = #{delFlag}, where id = #{id} delete from order_basic_info where id in #{id} delete from order_detail where order_code in #{orderCode} delete from order_detail where order_code = #{orderCode} insert into order_detail(id, order_code, total_used_electricity, total_order_amount, total_electricity_amount, total_service_amount, sharp_price, sharp_used_electricity, sharp_electricity_price, sharp_service_price, sharp_amount, peak_price, peak_used_electricity, peak_electricity_price, peak_service_price, peak_amount, flat_price, flat_used_electricity, flat_electricity_price, flat_service_price, flat_amount, valley_price, valley_used_electricity, valley_electricity_price, valley_service_price, valley_amount, create_by, update_by) values (#{item.id}, #{item.orderCode}, #{item.totalUsedElectricity}, #{item.totalOrderAmount}, #{item.totalElectricityAmount}, #{item.totalServiceAmount}, #{item.sharpPrice}, #{item.sharpUsedElectricity}, #{item.sharpElectricityPrice}, #{item.sharpServicePrice}, #{item.sharpAmount}, #{item.peakPrice}, #{item.peakUsedElectricity}, #{item.peakElectricityPrice}, #{item.peakServicePrice}, #{item.peakAmount}, #{item.flatPrice}, #{item.flatUsedElectricity}, #{item.flatElectricityPrice}, #{item.flatServicePrice}, #{item.flatAmount}, #{item.valleyPrice}, #{item.valleyUsedElectricity}, #{item.valleyElectricityPrice}, #{item.valleyServicePrice}, #{item.valleyAmount}, #{item.createBy}, #{item.updateBy}) update order_detail order_code = #{orderCode}, total_used_electricity = #{totalUsedElectricity}, total_order_amount = #{totalOrderAmount}, total_electricity_amount = #{totalElectricityAmount}, discount_electricity_amount = #{discountElectricityAmount}, total_service_amount = #{totalServiceAmount}, discount_service_amount = #{discountServiceAmount}, sharp_price = #{sharpPrice}, sharp_used_electricity = #{sharpUsedElectricity}, sharp_electricity_price = #{sharpElectricityPrice}, sharp_service_price = #{sharpServicePrice}, sharp_amount = #{sharpAmount}, peak_price = #{peakPrice}, peak_used_electricity = #{peakUsedElectricity}, peak_electricity_price = #{peakElectricityPrice}, peak_service_price = #{peakServicePrice}, peak_amount = #{peakAmount}, flat_price = #{flatPrice}, flat_used_electricity = #{flatUsedElectricity}, flat_electricity_price = #{flatElectricityPrice}, flat_service_price = #{flatServicePrice}, flat_amount = #{flatAmount}, valley_price = #{valleyPrice}, valley_used_electricity = #{valleyUsedElectricity}, valley_electricity_price = #{valleyElectricityPrice}, valley_service_price = #{valleyServicePrice}, valley_amount = #{valleyAmount}, create_by = #{createBy}, update_by = #{updateBy}, del_flag = #{delFlag}, where id = #{id} update order_basic_info set order_status = #{orderStatus,jdbcType=VARCHAR} where del_flag = '0' and order_code = #{orderCode,jdbcType=VARCHAR} update order_basic_info set order_status = #{orderStatus,jdbcType=VARCHAR} where del_flag = '0' and id in #{orderId,jdbcType=VARCHAR} update order_detail when id = #{item.id} then #{item.totalElectricityAmount} when id = #{item.id} then #{item.totalServiceAmount} where id = #{i.id} update order_basic_info set merchant_id = #{newMerchantId,jdbcType=VARCHAR} where station_id = #{stationId,jdbcType=BIGINT}