Fix su publications

This commit is contained in:
2024-02-29 15:56:31 +01:00
parent ba198c9d2f
commit cf3235b176
2 changed files with 2 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ public class AsyncHistoryManager {
String innerSql = "SELECT * " +
"FROM " + exportHistoryItem.getPublication().getEntityName();
innerSql = UtilityDB.addwhereCond(innerSql, exportHistoryItem.getPublication().getWhereCond(), true);
innerSql = UtilityDB.addwhereCond(innerSql, exportHistoryItem.getPublication().getWhereCondSql(), true);
UtilityDB.executeSimpleQueryDTOAsync(connection, innerSql, entityClass, data -> {

View File

@@ -52,6 +52,7 @@ public class RemoteSynchronizationTransactionsService {
List<StbTransactionLog> transactions = UtilityDB.executeSimpleQueryDTO(multiDBTransactionManager.getPrimaryConnection(),
"SELECT * FROM " + StbTransactionLog.ENTITY + "\n" +
"WHERE group_id IN (" + UtilityQuery.concatLongFieldsWithSeparator(availableGroupIds, ",") + ")\n" +
"AND publication_group_id = " + UtilityDB.valueToString(publicationId) + "\n" +
"ORDER BY id",
StbTransactionLog.class);