feat: Add delete policy in recon page and system operation log.

This commit is contained in:
sunwen
2024-09-14 15:59:22 +08:00
parent ea6a6e99e4
commit 3b7f2ebd04
10 changed files with 85 additions and 32 deletions

View File

@@ -269,6 +269,11 @@ void DeviceManager::initGUI(bool aIsInitSucceed)
//process expired patient list
QDate date = QDate::currentDate().addDays(-JsonObject::Instance()->getPatientListExpireDays());
SQLHelper::exec(QString("DELETE FROM Patient WHERE AddDate <= %1").arg(date.toString("yyyy-MM-dd")));
//process expired scan list
date = QDate::currentDate().addDays(-JsonObject::Instance()->getScanListExpireDays());
SQLHelper::exec(QString("DELETE FROM Scan WHERE ScanDateTime <= \"%1\"").arg(date.toString("yyyy-MM-dd")));
}
void DeviceManager::processInitializeProgress(const QString& aProgress)