Impostato loadedFromDb in incremento pos riga openStep e fix lettura da cacheEntities non lowercase

This commit is contained in:
2024-02-06 11:03:08 +01:00
parent 11d24fe5c9
commit 9f9165c780
2 changed files with 2 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ public class DynamicCacheService {
String sql = "SELECT * FROM " + tableName;
List<? extends EntityBase> entities = UtilityDB.executeSimpleQueryDTO(multiDBTransactionManager.getPrimaryConnection(), sql, clazz);
cachedEntitiesByDB.putIfAbsent(dbName, entities);
cachedEntitiesByDB.putIfAbsent(dbName.toLowerCase(), entities);
} finally {
multiDBTransactionManager.closeAll();
}

View File

@@ -348,6 +348,7 @@ public class MesProductionServiceV2 {
if (dtbOrdrsToUpdate != null && !dtbOrdrsToUpdate.isEmpty()) {
DtbOrdr dtbOrdrProdToUpdate = dtbOrdrsToUpdate.get(0);
dtbOrdrProdToUpdate.setOperation(OperationType.UPDATE);
dtbOrdrProdToUpdate.setLoadedFromDb(true);
DtbOrdt dtbOrdtProdToUpdate = new DtbOrdt()
.setDataOrd(dtbOrdrProdToUpdate.getDataOrd())