Browse Source

update

master
zhaohe 2 years ago
parent
commit
05565e5b6b
  1. 4
      src/service/data_export_service.cpp

4
src/service/data_export_service.cpp

@ -69,7 +69,7 @@ err::error_t DataExportService::exportDisinfectionData() {
// 挂载目录
IF_ERROR_RETURN(dosystem(fmt::format("mount {} /mnt/exportdata", diskpath)));
// 拷贝文件
IF_ERROR_RETURN(dosystem(fmt::format("cp -rf /app/disinfection_logs /mnt/exportdata/{}disinfection_logs", getTime())));
IF_ERROR_RETURN(dosystem(fmt::format("cp -rf /app/disinfection_logs /mnt/exportdata/disinfection_logs{}", getTime())));
// 卸载目录
IF_ERROR_RETURN(dosystem(fmt::format("umount /mnt/exportdata")));
// 删除目录
@ -93,7 +93,7 @@ err::error_t DataExportService::exportAuditData() {
*/
auto records = m_dbService->getAllUserBehaviorRecord();
string filename = fmt::format("/tmp/{}audit.csv", getTime());
string filename = fmt::format("/tmp/audit{}.csv", getTime());
ofstream ofs(filename);
if (!ofs.is_open()) {

Loading…
Cancel
Save