Adicionado a tabela de partição do GED
This commit is contained in:
parent
934755e68e
commit
98f07a1c1b
2 changed files with 6 additions and 8 deletions
7
vendor/action/log/log_save.php
vendored
7
vendor/action/log/log_save.php
vendored
|
|
@ -158,9 +158,6 @@ try {
|
|||
}
|
||||
}
|
||||
|
||||
/** Deleta os dados da partição */
|
||||
$StationFolder->DeletePartition($clientId, $stationId);
|
||||
|
||||
/** Exclui as antigas pastas */
|
||||
$StationFolder->Delete($stationId);
|
||||
|
||||
|
|
@ -189,6 +186,10 @@ try {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/** Deleta os dados da partição */
|
||||
$StationFolder->DeletePartition($clientId);
|
||||
|
||||
/** Grava os detalhes da partição GED */
|
||||
$StationFolder->SavePartition($jsonLog->ged->{'partition'},
|
||||
$clientId,
|
||||
|
|
|
|||
7
vendor/model/StationFolder.class.php
vendored
7
vendor/model/StationFolder.class.php
vendored
|
|
@ -310,23 +310,20 @@ class StationFolder
|
|||
}
|
||||
|
||||
/** Deleta um determinado registro no banco de dados */
|
||||
function DeletePartition(int $clientId, int $stationId)
|
||||
function DeletePartition(int $clientId)
|
||||
{
|
||||
/** Parametros de entrada */
|
||||
$this->clientId = $clientId;
|
||||
$this->stationId = $stationId;
|
||||
|
||||
/** Consulta SQL */
|
||||
$this->sql = 'delete from station_folder_partition
|
||||
where client_id = :client_id
|
||||
and station_id = :station_id';
|
||||
where client_id = :client_id';
|
||||
|
||||
/** Preparo o sql para receber os valores */
|
||||
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
||||
|
||||
/** Preencho os parâmetros do SQL */
|
||||
$this->stmt->bindParam(':client_id', $this->clientId);
|
||||
$this->stmt->bindParam(':station_id', $this->stationId);
|
||||
|
||||
/** Executo o SQL */
|
||||
return $this->stmt->execute();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue