select id, work_status, pcs_communication_status, ems_communication_status, total_voltage, chargeable_capacity, total_charged_capacity, total_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 from ems_battery_stack
insert into ems_battery_stack
work_status,
pcs_communication_status,
ems_communication_status,
total_voltage,
chargeable_capacity,
total_charged_capacity,
total_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,
#{workStatus},
#{pcsCommunicationStatus},
#{emsCommunicationStatus},
#{totalVoltage},
#{chargeableCapacity},
#{totalChargedCapacity},
#{totalCurrent},
#{dischargeableCapacity},
#{totalDischargedCapacity},
#{soh},
#{averageTemperature},
#{insulationResistance},
#{currentSoc},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{siteId},
#{deviceId},
update ems_battery_stack
work_status = #{workStatus},
pcs_communication_status = #{pcsCommunicationStatus},
ems_communication_status = #{emsCommunicationStatus},
total_voltage = #{totalVoltage},
chargeable_capacity = #{chargeableCapacity},
total_charged_capacity = #{totalChargedCapacity},
total_current = #{totalCurrent},
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},
where id = #{id}
delete from ems_battery_stack where id = #{id}
delete from ems_battery_stack where id in
#{id}