Browse Source

VERSION 1.1.6

storage-in-realtime
zhaohe 11 months ago
parent
commit
0c55dbe10f
  1. 3
      README.md
  2. 2
      appsrc/appsetting/project_port/basic/zappversion.hpp
  3. 7
      appsrc/service/disinfection_logs_service.cpp
  4. 1
      appsrc/service/disinfection_logs_service.hpp

3
README.md

@ -63,6 +63,9 @@ VERSION 1.1.3
VERSION 1.1.5 VERSION 1.1.5
1. 修复用户行为时间戳错误的BUG 1. 修复用户行为时间戳错误的BUG
2. 修复usrMgr接口BUG 2. 修复usrMgr接口BUG
VERSION 1.1.6
1. 添加批量日志接口
2. 修复测试模式下出现重复消毒日志的BUG
TODO: TODO:
添加用户增加用户查重检查 添加用户增加用户查重检查

2
appsrc/appsetting/project_port/basic/zappversion.hpp

@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION "1.1.5"
#define VERSION "1.1.6"
#define PROJECT_NAME "TRANSMIT_DM" #define PROJECT_NAME "TRANSMIT_DM"

7
appsrc/service/disinfection_logs_service.cpp

@ -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;

1
appsrc/service/disinfection_logs_service.hpp

@ -56,6 +56,7 @@ class DisinfectionLogsService : public enable_shared_from_this<DisinfectionLogsS
void getRecordList(shared_ptr<MsgProcessContext> cxt); void getRecordList(shared_ptr<MsgProcessContext> cxt);
void getRecord(shared_ptr<MsgProcessContext> cxt, string logName); void getRecord(shared_ptr<MsgProcessContext> cxt, string logName);
void deleteReport(shared_ptr<MsgProcessContext> cxt, string logName); void deleteReport(shared_ptr<MsgProcessContext> cxt, string logName);
void deleteReports(shared_ptr<MsgProcessContext> cxt, string logNames);
void exportRecord(shared_ptr<MsgProcessContext> cxt, vector<string> logNames); void exportRecord(shared_ptr<MsgProcessContext> cxt, vector<string> logNames);
void printRecord(shared_ptr<MsgProcessContext> cxt, string logName); void printRecord(shared_ptr<MsgProcessContext> cxt, string logName);

Loading…
Cancel
Save