huli преди 2 години
родител
ревизия
91edd90767
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      plc调度节点/dispatch/dispatch_command.cpp

+ 4 - 4
plc调度节点/dispatch/dispatch_command.cpp

@@ -924,17 +924,17 @@ Error_manager Dispatch_command::updata_record_for_park_end()
 	int in_time_difference = Time_tool::get_instance_references().get_time_seconds(PARK_TIME_FLAG);
 
 	//t_index_id是指定单元的车位id, 1~78
-	int t_index_id = (m_dispatch_command_map[m_car_number_optimal].m_parkspace_info_msg.id() - 1 ) % 78;
-	t_index_id = t_index_id + 1;
+	int t_table_id = (m_dispatch_command_map[m_car_number_optimal].m_parkspace_info_msg.id() - 1 ) % 78;
+	t_table_id = t_table_id + 1;
 	//执行sql操作
 	char update_record_sql[1024];
 	memset(update_record_sql, 0, 1024);
 //	sprintf(update_record_sql, "update record set in_time_end = '%s', in_time_difference = %d, space_id = %d, space_info = '%s' where primary_key = '%s' ",
-	sprintf(update_record_sql, "update record set in_time_end = '%s', in_time_difference = %d, space_id = %d, index_id = %d, unit_id = %d, floor_id = %d, room_id = %d  where primary_key = '%s' ",
+	sprintf(update_record_sql, "update record set in_time_end = '%s', in_time_difference = %d, space_id = %d, table_id = %d, unit_id = %d, floor_id = %d, room_id = %d  where primary_key = '%s' ",
 			Time_tool::get_instance_references().get_current_time_seconds().c_str(),
 			in_time_difference,
 			m_dispatch_command_map[m_car_number_optimal].m_parkspace_info_msg.id(),
-			t_index_id,
+			t_table_id,
 			m_dispatch_command_map[m_car_number_optimal].m_parkspace_info_msg.unit_id(),
 			m_dispatch_command_map[m_car_number_optimal].m_parkspace_info_msg.floor(),
 			m_dispatch_command_map[m_car_number_optimal].m_parkspace_info_msg.room_id(),