select id, device_id, command_type, command_content, status, send_time, execute_time, finish_time from ec_device_command insert into ec_device_command device_id, command_type, command_content, status, send_time, execute_time, finish_time, #{deviceId}, #{commandType}, #{commandContent}, #{status}, #{sendTime}, #{executeTime}, #{finishTime}, update ec_device_command device_id = #{deviceId}, command_type = #{commandType}, command_content = #{commandContent}, status = #{status}, send_time = #{sendTime}, execute_time = #{executeTime}, finish_time = #{finishTime}, where id = #{id} delete from ec_device_command where id = #{id} delete from ec_device_command where id in #{id}