insert into machine.photovoltaic_error(error_id, mac, error_code, error_msg, destination_address, timestamp)
values
(#{entity.errorId}, #{entity.mac}, #{entity.errorCode}, #{entity.errorMsg}, #{entity.destinationAddress},
#{entity.timestamp})
insert into machine.photovoltaic_error(error_id, mac, error_code, error_msg, destination_address, timestamp)
values
(#{entity.errorId}, #{entity.mac}, #{entity.errorCode}, #{entity.errorMsg}, #{entity.destinationAddress},
#{entity.timestamp})
on duplicate key update
error_id = values(error_id) , mac = values(mac) , error_code = values(error_code) , error_msg =
values(error_msg) , destination_address = values(destination_address) , timestamp = values(timestamp)