select id, work_status, pcs_communication_status, ems_communication_status, cluster_voltage, chargeable_capacity, total_charged_capacity, cluster_current, dischargeable_capacity, total_discharged_capacity, soh, average_temperature, insulation_resistance, current_soc, create_by, create_time, update_by, update_time, remark, site_id, device_id, stack_device_id, max_allowed_charge_power, max_allowed_discharge_power, max_allowed_charge_voltage, max_allowed_discharge_voltage, max_allowed_charge_current, max_allowed_discharge_current, battery_pack_voltage, battery_pack_current, battery_pack_temp, battery_pack_soc, battery_pack_soh, battery_pack_insulation_resistance, avg_cell_voltage, avg_cell_temp, max_cell_voltage, max_cell_voltage_id, min_cell_voltage, min_cell_voltage_id, max_cell_temp, max_cell_temp_id, min_cell_temp, min_cell_temp_id, max_cell_soc, max_cell_soc_id, min_cell_soc, min_cell_soc_id, max_cell_soh, max_cell_soh_id, min_cell_soh, min_cell_soh_id, total_charge_energy, total_discharge_energy from ems_battery_cluster
insert into ems_battery_cluster
work_status,
pcs_communication_status,
ems_communication_status,
cluster_voltage,
chargeable_capacity,
total_charged_capacity,
cluster_current,
dischargeable_capacity,
total_discharged_capacity,
soh,
average_temperature,
insulation_resistance,
current_soc,
create_by,
create_time,
update_by,
update_time,
remark,
site_id,
device_id,
stack_device_id,
max_allowed_charge_power,
max_allowed_discharge_power,
max_allowed_charge_voltage,
max_allowed_discharge_voltage,
max_allowed_charge_current,
max_allowed_discharge_current,
battery_pack_voltage,
battery_pack_current,
battery_pack_temp,
battery_pack_soc,
battery_pack_soh,
battery_pack_insulation_resistance,
avg_cell_voltage,
avg_cell_temp,
max_cell_voltage,
max_cell_voltage_id,
min_cell_voltage,
min_cell_voltage_id,
max_cell_temp,
max_cell_temp_id,
min_cell_temp,
min_cell_temp_id,
max_cell_soc,
max_cell_soc_id,
min_cell_soc,
min_cell_soc_id,
max_cell_soh,
max_cell_soh_id,
min_cell_soh,
min_cell_soh_id,
total_charge_energy,
total_discharge_energy,
#{workStatus},
#{pcsCommunicationStatus},
#{emsCommunicationStatus},
#{clusterVoltage},
#{chargeableCapacity},
#{totalChargedCapacity},
#{clusterCurrent},
#{dischargeableCapacity},
#{totalDischargedCapacity},
#{soh},
#{averageTemperature},
#{insulationResistance},
#{currentSoc},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{siteId},
#{deviceId},
#{stackDeviceId},
#{maxAllowedChargePower},
#{maxAllowedDischargePower},
#{maxAllowedChargeVoltage},
#{maxAllowedDischargeVoltage},
#{maxAllowedChargeCurrent},
#{maxAllowedDischargeCurrent},
#{batteryPackVoltage},
#{batteryPackCurrent},
#{batteryPackTemp},
#{batteryPackSoc},
#{batteryPackSoh},
#{batteryPackInsulationResistance},
#{avgCellVoltage},
#{avgCellTemp},
#{maxCellVoltage},
#{maxCellVoltageId},
#{minCellVoltage},
#{minCellVoltageId},
#{maxCellTemp},
#{maxCellTempId},
#{minCellTemp},
#{minCellTempId},
#{maxCellSoc},
#{maxCellSocId},
#{minCellSoc},
#{minCellSocId},
#{maxCellSoh},
#{maxCellSohId},
#{minCellSoh},
#{minCellSohId},
#{totalChargeEnergy},
#{totalDischargeEnergy},
update ems_battery_cluster
work_status = #{workStatus},
pcs_communication_status = #{pcsCommunicationStatus},
ems_communication_status = #{emsCommunicationStatus},
cluster_voltage = #{clusterVoltage},
chargeable_capacity = #{chargeableCapacity},
total_charged_capacity = #{totalChargedCapacity},
cluster_current = #{clusterCurrent},
dischargeable_capacity = #{dischargeableCapacity},
total_discharged_capacity = #{totalDischargedCapacity},
soh = #{soh},
average_temperature = #{averageTemperature},
insulation_resistance = #{insulationResistance},
current_soc = #{currentSoc},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
site_id = #{siteId},
device_id = #{deviceId},
stack_device_id = #{stackDeviceId},
max_allowed_charge_power = #{maxAllowedChargePower},
max_allowed_discharge_power = #{maxAllowedDischargePower},
max_allowed_charge_voltage = #{maxAllowedChargeVoltage},
max_allowed_discharge_voltage = #{maxAllowedDischargeVoltage},
max_allowed_charge_current = #{maxAllowedChargeCurrent},
max_allowed_discharge_current = #{maxAllowedDischargeCurrent},
battery_pack_voltage = #{batteryPackVoltage},
battery_pack_current = #{batteryPackCurrent},
battery_pack_temp = #{batteryPackTemp},
battery_pack_soc = #{batteryPackSoc},
battery_pack_soh = #{batteryPackSoh},
battery_pack_insulation_resistance = #{batteryPackInsulationResistance},
avg_cell_voltage = #{avgCellVoltage},
avg_cell_temp = #{avgCellTemp},
max_cell_voltage = #{maxCellVoltage},
max_cell_voltage_id = #{maxCellVoltageId},
min_cell_voltage = #{minCellVoltage},
min_cell_voltage_id = #{minCellVoltageId},
max_cell_temp = #{maxCellTemp},
max_cell_temp_id = #{maxCellTempId},
min_cell_temp = #{minCellTemp},
min_cell_temp_id = #{minCellTempId},
max_cell_soc = #{maxCellSoc},
max_cell_soc_id = #{maxCellSocId},
min_cell_soc = #{minCellSoc},
min_cell_soc_id = #{minCellSocId},
max_cell_soh = #{maxCellSoh},
max_cell_soh_id = #{maxCellSohId},
min_cell_soh = #{minCellSoh},
min_cell_soh_id = #{minCellSohId},
total_charge_energy = #{totalChargeEnergy},
total_discharge_energy = #{totalDischargeEnergy},
where id = #{id}
delete from ems_battery_cluster where id = #{id}
delete from ems_battery_cluster where id in
#{id}