select charging_pile_id,
charging_station_id,
name,
national_standard,
power,
auxiliary_power_supply,
input_voltage,
max_voltage,
min_voltage,
max_electric_current,
min_electric_current,
serial_number,
type,
program_version,
network_link_type,
gun_number,
communication_protocol_version,
communication_operator,
sim_card,
rate_model_id,
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark,
rate_model_id,
brand_model
from xhpc_charging_pile
insert into xhpc_charging_pile
charging_station_id,
name,
national_standard,
power,
auxiliary_power_supply,
input_voltage,
max_voltage,
min_voltage,
max_electric_current,
min_electric_current,
serial_number,
type,
program_version,
network_link_type,
gun_number,
communication_protocol_version,
communication_operator,
sim_card,
rate_model_id,
status,
del_flag,
create_time,
create_by,
update_time,
update_by,
remark
brand_model
#{chargingStationId},
#{name},
#{nationalStandard},
#{power},
#{auxiliaryPowerSupply},
#{inputVoltage},
#{maxVoltage},
#{minVoltage},
#{maxElectricCurrent},
#{minElectriCurrent},
#{serialNumber},
#{type},
#{programVersion},
#{networkLinkType},
#{gunNumber},
#{communicationProtocolVersion},
#{communicationOperator},
#{simCard},
#{rateModelId},
#{status},
#{delFlag},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{remark}
#{brandModel}
update xhpc_charging_pile
charging_station_id = #{chargingStationId},
name = #{name},
national_standard = #{nationalStandard},
power = #{power},
auxiliary_power_supply = #{auxiliaryPowerSupply},
input_voltage = #{inputVoltage},
max_voltage = #{maxVoltage},
min_voltage = #{minVoltage},
max_electric_current = #{maxElectricCurrent},
min_electric_current = #{minElectriCurrent},
serial_number = #{serialNumber},
type = #{type},
program_version = #{programVersion},
network_link_type = #{networkLinkType},
gun_number = #{gunNumber},
network_link_type = #{networkLinkType},
communication_protocol_version =
#{communicationProtocolVersion},
communication_operator = #{communicationOperator},
sim_card = #{simCard},
rate_model_id = #{rateModelId},
status = #{status},
del_flag = #{delFlag},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
remark = #{remark}
brand_model = #{brandModel}
where charging_pile_id = #{chargingPileId}
update xhpc_charging_pile
set del_flag =1
where charging_pile_id = #{chargingPileId}
update xhpc_terminal
set del_flag = 2
where charging_pile_id = #{chargingPileId}