Updated config

This commit is contained in:
Giancarlo Panichi 2025-02-12 12:06:45 +01:00
parent 62f469f963
commit b684d24e33
5 changed files with 18 additions and 58 deletions

View File

@ -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) {
// 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> 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> 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);

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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: