Дополнение обновлений
This commit is contained in:
2025-03-13 14:36:02 +03:00
parent 1d97048de1
commit dc68667b20
8 changed files with 35 additions and 217 deletions

View File

@@ -587,6 +587,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
void GetSapforForCompilation() throws Exception {
//1. Проверить наличие заказов от пользователя
ServerSapfor serverSapfor = db.getSapforCopyForCompilation();
if (serverSapfor == null) {
//2 если нет. проверить есть ли свежие версии.
int max_version = db.getInstalledSapforMaxVersion();
@@ -597,6 +598,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
serverSapfor = new ServerSapfor();
serverSapfor.sender_name = "server";
serverSapfor.sender_address = Constants.MailAddress;
serverSapfor.version = String.valueOf(current_version);
serverSapfor.state = ServerSapforState.Queued;
db.Insert(serverSapfor);
}