select id, product_id, electricitycell_type, rated_capacity, battery_configuration, rated_dc_voltage,
dc_voltage_range, charge_discharge_rate, rated_power, maximum_cycle_efficiency,
bms_protection_architecture, confluence_mode, fire_fighting, cooling_method, protection_level,
anti_corrosion_level, working_temperature, allowable_humidity_range, altitude, direct_current_size,
number_sockets, create_by, create_time, update_by, update_time
from product_directcurrent
insert into product_directcurrent (
product_id,
electricitycell_type,
rated_capacity,
battery_configuration,
rated_dc_voltage,
dc_voltage_range,
charge_discharge_rate,
rated_power,
maximum_cycle_efficiency,
bms_protection_architecture,
confluence_mode,
fire_fighting,
cooling_method,
protection_level,
anti_corrosion_level,
working_temperature,
allowable_humidity_range,
altitude,
direct_current_size,
number_sockets,
create_by,
create_time
)values(
#{productId},
#{electricitycellType},
#{ratedCapacity},
#{batteryConfiguration},
#{ratedDcVoltage},
#{dcVoltageRange},
#{chargeDischargeRate},
#{ratedPower},
#{maximumCycleEfficiency},
#{bmsProtectionArchitecture},
#{confluenceMode},
#{fireFighting},
#{coolingMethod},
#{protectionLevel},
#{antiCorrosionLevel},
#{workingTemperature},
#{allowableHumidityRange},
#{altitude},
#{directCurrentSize},
#{numberSockets},
#{createBy},
sysdate()
)
update product_directcurrent
product_id = #{productId},
electricitycell_type = #{electricitycellType},
rated_capacity = #{ratedCapacity},
battery_configuration = #{batteryConfiguration},
rated_dc_voltage = #{ratedDcVoltage},
dc_voltage_range = #{dcVoltageRange},
charge_discharge_rate = #{chargeDischargeRate},
rated_power = #{ratedPower},
maximum_cycle_efficiency = #{maximumCycleEfficiency},
bms_protection_architecture = #{bmsProtectionArchitecture},
confluence_mode = #{confluenceMode},
fire_fighting = #{fireFighting},
cooling_method = #{coolingMethod},
protection_level = #{protectionLevel},
anti_corrosion_level = #{antiCorrosionLevel},
working_temperature = #{workingTemperature},
allowable_humidity_range = #{allowableHumidityRange},
altitude = #{altitude},
direct_current_size = #{directCurrentSize},
number_sockets = #{numberSockets},
update_by = #{updateBy},
update_time = sysdate()
where id = #{id}
delete from product_directcurrent where product_id = #{productId}
delete from product_directcurrent where id in
#{id}