diff --git a/src/main/java/it/cnr/isti/epasmed/sync/SyncService.java b/src/main/java/it/cnr/isti/epasmed/sync/SyncService.java index 83c6711..c15f13d 100755 --- a/src/main/java/it/cnr/isti/epasmed/sync/SyncService.java +++ b/src/main/java/it/cnr/isti/epasmed/sync/SyncService.java @@ -174,8 +174,6 @@ public class SyncService { private boolean btelefoni; private boolean bgruppi; private boolean bgruppo_pers; - // private boolean bposizioni; - // private boolean bproroghe; private boolean borario; private boolean bcartellini; private boolean bcartellini_rendicontazioni; @@ -280,8 +278,6 @@ public class SyncService { } private void readData(List tabsSI) { - // TabsSI posizioniTab = null; - // TabsSI prorogheTab = null; for (TabsSI tab : tabsSI) { logger.info("TabSI: {}", tab); if (tab.getOperazioni() != null && !tab.getOperazioni().isEmpty() @@ -299,27 +295,19 @@ public class SyncService { case "telefoni": syncTelefoni(tab); break; - //case "gruppi": - // syncGruppi(tab); - // break; - //case "gruppo_pers": - // syncGruppoPers(tab); - // break; - // case "posizioni": - // posizioniTab = tab; - // break; - // case "proroghe": - // prorogheTab = tab; - // break; + case "gruppi": + syncGruppi(tab); + break; + case "gruppo_pers": + syncGruppoPers(tab); + break; default: break; } } } - // if (posizioniTab != null || prorogheTab != null) { - // syncPosizioniAndProroghe(posizioniTab, prorogheTab); - // } + } private void syncAnagrafico(TabsSI tab) { @@ -852,17 +840,6 @@ public class SyncService { readTabs = readTabs + ",gruppo_pers"; } } - - /* - * if (bposizioni) { if (tabelle_lette == null || tabelle_lette.isEmpty()) { - * tabelle_lette = "posizioni"; } else { tabelle_lette = tabelle_lette + - * ",posizioni"; } } - * - * if (bproroghe) { if (tabelle_lette == null || tabelle_lette.isEmpty()) { - * tabelle_lette = "proroghe"; } else { tabelle_lette = tabelle_lette + - * ",proroghe"; } } - */ - return readTabs; } @@ -981,12 +958,6 @@ public class SyncService { } switch (tab.getNome()) { - // case "orario": - // syncOrario(fluxId, tab); - // break; - // case "pers_orario": - // syncPersOrario(fluxId,tab); - // break; case "cartellini": break; case "cartellini_rendicontazioni": @@ -995,9 +966,6 @@ public class SyncService { case "lavoro_fuori_sede": syncLavoroFuoriSede(fluxId, tab, year, month, now); break; - // case "aspettative": - // syncAspettative(fluxId,tab); - // break; default: break; } @@ -1020,23 +988,11 @@ public class SyncService { } switch (tab.getNome()) { - // case "orario": - // syncOrario(fluxId, tab); - // break; - // case "pers_orario": - // syncPersOrario(fluxId,tab); - // break; case "cartellini": break; case "cartellini_rendicontazioni": syncCartelliniRendicontazioni(fluxId, tab, year, month, now, timeCardsReporting); break; - // case "lavoro_fuori_sede": - // syncLavoroFuoriSede(fluxId,tab); - // break; - // case "aspettative": - // syncAspettative(fluxId,tab); - // break; default: break; } @@ -1074,8 +1030,7 @@ public class SyncService { private void writeOffSiteWorksData(Long fluxId, List tabsSI, String year, String month) throws Exception { logger.info("Report {}-{}", year, month); LocalDateTime now = LocalDateTime.now(); - // checkValidMonthToSend(year, month); - + for (TabsSI tab : tabsSI) { logger.info("TabSI: {}", tab); if (tab.getOperazioni() != null && !tab.getOperazioni().isEmpty() @@ -1099,7 +1054,6 @@ public class SyncService { private void writeLeavesData(Long fluxId, List tabsSI, String year, String month) throws Exception { logger.info("Report {}-{}", year, month); LocalDateTime now = LocalDateTime.now(); - // checkValidMonthToSend(year, month); for (TabsSI tab : tabsSI) { logger.info("TabSI: {}", tab); diff --git a/src/main/resources/config/application-dev.yml b/src/main/resources/config/application-dev.yml index fbf359a..0fe0e1c 100755 --- a/src/main/resources/config/application-dev.yml +++ b/src/main/resources/config/application-dev.yml @@ -125,7 +125,9 @@ application: datasource-epas-rest: #rest-url: https://epas-demo.devel.iit.cnr.it/rest - rest-url: https://epas.isti.cnr.it/rest + #rest-url: https://epas.isti.cnr.it/rest + #rest-url: https://epas4clients.amministrazione.cnr.it/rest + rest-url: https://epas.amministrazione.cnr.it/rest rest-username1: rest-password1: rest-username2: diff --git a/src/main/resources/config/application-prod.yml b/src/main/resources/config/application-prod.yml index b873517..203a1d0 100755 --- a/src/main/resources/config/application-prod.yml +++ b/src/main/resources/config/application-prod.yml @@ -145,7 +145,9 @@ application: maximum-pool-size: 10 datasource-epas-rest: #rest-url: https://epas-demo.devel.iit.cnr.it/rest - rest-url: https://epas.isti.cnr.it/rest + #rest-url: https://epas.isti.cnr.it/rest + #rest-url: https://epas4clients.amministrazione.cnr.it/rest + rest-url: https://epas.amministrazione.cnr.it/rest rest-username1: rest-password1: rest-username2: diff --git a/src/test/resources/config/application-testcontainers.yml b/src/test/resources/config/application-testcontainers.yml index c8daa31..6e3b9b5 100755 --- a/src/test/resources/config/application-testcontainers.yml +++ b/src/test/resources/config/application-testcontainers.yml @@ -13,7 +13,7 @@ spring: type: com.zaxxer.hikari.HikariDataSource driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver url: jdbc:tc:postgresql:latest:///epasmed?TC_TMPFS=/testtmpfs:rw - username: + username: epasmed password: hikari: poolName: Hikari diff --git a/src/test/resources/config/application.yml b/src/test/resources/config/application.yml index 1ed3465..df76fe5 100755 --- a/src/test/resources/config/application.yml +++ b/src/test/resources/config/application.yml @@ -119,7 +119,9 @@ application: datasource-epas-rest: #rest-url: https://epas-demo.devel.iit.cnr.it/rest - rest-url: https://epas.isti.cnr.it/rest + #rest-url: https://epas.isti.cnr.it/rest + #rest-url: https://epas4clients.amministrazione.cnr.it/rest + rest-url: https://epas.amministrazione.cnr.it/rest rest-username1: rest-password1: rest-username2: