insert into xhpc_charge_order
charging_station_id,
user_id,
terminal_id,
internet_serial_number,
serial_number,
start_soc,
end_soc,
source,
status,
del_flag,
rate_model_id,
charging_mode,
start_time,
end_time,
charging_time,
charging_degree,
type,
erro_remark,
amount_charged,
power
#{chargingStationId},
#{userId},
#{terminalId},
#{internetSerialNumber},
#{serialNumber},
#{startSoc},
#{endSoc},
#{source},
#{status},
#{delFlag},
#{rateModelId},
#{chargingMode},
#{startTime},
#{endTime},
#{chargingTime},
#{chargingDegree},
#{type},
#{erroRemark},
#{amountCharged},
#{power}
update xhpc_charge_order
start_soc = #{startSoc},
end_soc = #{endSoc},
status=#{status},
remark = #{remark},
start_time = #{startTime},
end_time = #{endTime},
charging_time = #{chargingTime},
charging_degree = #{chargingDegree},
type = #{type},
power = #{power},
erro_remark = #{erroRemark},
amount_charged = #{amountCharged}
where charge_order_id = #{chargeOrderId}