basically fix query time error
This commit is contained in:
@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||||||
set(CMAKE_BUILD_TYPE Release)
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -fsanitize=address -fsanitize=undefined -fsanitize=leak")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Wall -fsanitize=address -fsanitize=undefined -fsanitize=leak")
|
||||||
|
|
||||||
# 执行git命令检查是否有未存档的更改
|
# 执行git命令检查是否有未存档的更改
|
||||||
execute_process(
|
execute_process(
|
||||||
|
@ -147,7 +147,9 @@ class StopRegister : public DataDriverBase {
|
|||||||
entry.arrive_time_stamp = entry.actual_start_date * 1440 + startTime +
|
entry.arrive_time_stamp = entry.actual_start_date * 1440 + startTime +
|
||||||
(*reinterpret_cast<const MinimalTrainRecord *>(&value_to)).vis_time_offset;
|
(*reinterpret_cast<const MinimalTrainRecord *>(&value_to)).vis_time_offset;
|
||||||
entry.to_stop_id = key_to.stop_id;
|
entry.to_stop_id = key_to.stop_id;
|
||||||
res.push_back(entry);
|
// LOG->debug("leave_time_stamp {} arrive_time_stamp {}", entry.leave_time_stamp, entry.arrive_time_stamp);
|
||||||
|
if (entry.leave_time_stamp < entry.arrive_time_stamp) res.push_back(entry);
|
||||||
|
// res.push_back(entry);
|
||||||
++it_to;
|
++it_to;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -175,6 +177,11 @@ class StopRegister : public DataDriverBase {
|
|||||||
}
|
}
|
||||||
const auto &value_from = it_from.GetValue();
|
const auto &value_from = it_from.GetValue();
|
||||||
const auto &value_to = it_to.GetValue();
|
const auto &value_to = it_to.GetValue();
|
||||||
|
if ((*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).vis_time_offset >
|
||||||
|
(*reinterpret_cast<const MinimalTrainRecord *>(&value_to)).vis_time_offset) {
|
||||||
|
success = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
int true_saleDate_beg = (*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).saleDate_beg + June_1st_2024;
|
int true_saleDate_beg = (*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).saleDate_beg + June_1st_2024;
|
||||||
int true_saleDate_end = (*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).saleDate_end + June_1st_2024;
|
int true_saleDate_end = (*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).saleDate_end + June_1st_2024;
|
||||||
int leave_time_offset = (*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).vis_time_offset;
|
int leave_time_offset = (*reinterpret_cast<const MinimalTrainRecord *>(&value_from)).vis_time_offset;
|
||||||
|
Reference in New Issue
Block a user