|
@ -255,6 +255,8 @@ void DisinfectionLogsService::onAppDisinfectionFinishedEvent(shared_ptr<Disinfec |
|
|
m_statistics = statistics; |
|
|
m_statistics = statistics; |
|
|
dumpDisinfectionRecord(m_sessionId, m_snapshots); |
|
|
dumpDisinfectionRecord(m_sessionId, m_snapshots); |
|
|
dumpDisinfectionToPrinterLog(m_sessionId, m_snapshots); |
|
|
dumpDisinfectionToPrinterLog(m_sessionId, m_snapshots); |
|
|
|
|
|
|
|
|
|
|
|
m_recordFiles.remove_if([m_sessionId](const string& s) { return s == m_sessionId; }); // 删除已经存在的记录
|
|
|
m_recordFiles.push_back(m_sessionId); |
|
|
m_recordFiles.push_back(m_sessionId); |
|
|
/**
|
|
|
/**
|
|
|
* @brief |
|
|
* @brief |
|
@ -605,6 +607,11 @@ void DisinfectionLogsService::getRecord(shared_ptr<MsgProcessContext> cxt, strin |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void DisinfectionLogsService::deleteReport(shared_ptr<MsgProcessContext> cxt, string logName) { deleteRecordFile(logName); } |
|
|
void DisinfectionLogsService::deleteReport(shared_ptr<MsgProcessContext> cxt, string logName) { deleteRecordFile(logName); } |
|
|
|
|
|
void DisinfectionLogsService::deleteReports(shared_ptr<MsgProcessContext> cxt, vector<string> logNames) { |
|
|
|
|
|
for (auto& key : logNames) { |
|
|
|
|
|
deleteRecordFile(key); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void DisinfectionLogsService::exportRecord(shared_ptr<MsgProcessContext> cxt, vector<string> logNames) { |
|
|
void DisinfectionLogsService::exportRecord(shared_ptr<MsgProcessContext> cxt, vector<string> logNames) { |
|
|
vector<string> files; |
|
|
vector<string> files; |
|
|