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 btelefoni;
private boolean bgruppi; private boolean bgruppi;
private boolean bgruppo_pers; private boolean bgruppo_pers;
// private boolean bposizioni;
// private boolean bproroghe;
private boolean borario; private boolean borario;
private boolean bcartellini; private boolean bcartellini;
private boolean bcartellini_rendicontazioni; private boolean bcartellini_rendicontazioni;
@ -280,8 +278,6 @@ public class SyncService {
} }
private void readData(List<TabsSI> tabsSI) { private void readData(List<TabsSI> tabsSI) {
// TabsSI posizioniTab = null;
// TabsSI prorogheTab = null;
for (TabsSI tab : tabsSI) { for (TabsSI tab : tabsSI) {
logger.info("TabSI: {}", tab); logger.info("TabSI: {}", tab);
if (tab.getOperazioni() != null && !tab.getOperazioni().isEmpty() if (tab.getOperazioni() != null && !tab.getOperazioni().isEmpty()
@ -299,27 +295,19 @@ public class SyncService {
case "telefoni": case "telefoni":
syncTelefoni(tab); syncTelefoni(tab);
break; break;
//case "gruppi": case "gruppi":
// syncGruppi(tab); syncGruppi(tab);
// break; break;
//case "gruppo_pers": case "gruppo_pers":
// syncGruppoPers(tab); syncGruppoPers(tab);
// break; break;
// case "posizioni":
// posizioniTab = tab;
// break;
// case "proroghe":
// prorogheTab = tab;
// break;
default: default:
break; break;
} }
} }
} }
// if (posizioniTab != null || prorogheTab != null) {
// syncPosizioniAndProroghe(posizioniTab, prorogheTab);
// }
} }
private void syncAnagrafico(TabsSI tab) { private void syncAnagrafico(TabsSI tab) {
@ -852,17 +840,6 @@ public class SyncService {
readTabs = readTabs + ",gruppo_pers"; 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; return readTabs;
} }
@ -981,12 +958,6 @@ public class SyncService {
} }
switch (tab.getNome()) { switch (tab.getNome()) {
// case "orario":
// syncOrario(fluxId, tab);
// break;
// case "pers_orario":
// syncPersOrario(fluxId,tab);
// break;
case "cartellini": case "cartellini":
break; break;
case "cartellini_rendicontazioni": case "cartellini_rendicontazioni":
@ -995,9 +966,6 @@ public class SyncService {
case "lavoro_fuori_sede": case "lavoro_fuori_sede":
syncLavoroFuoriSede(fluxId, tab, year, month, now); syncLavoroFuoriSede(fluxId, tab, year, month, now);
break; break;
// case "aspettative":
// syncAspettative(fluxId,tab);
// break;
default: default:
break; break;
} }
@ -1020,23 +988,11 @@ public class SyncService {
} }
switch (tab.getNome()) { switch (tab.getNome()) {
// case "orario":
// syncOrario(fluxId, tab);
// break;
// case "pers_orario":
// syncPersOrario(fluxId,tab);
// break;
case "cartellini": case "cartellini":
break; break;
case "cartellini_rendicontazioni": case "cartellini_rendicontazioni":
syncCartelliniRendicontazioni(fluxId, tab, year, month, now, timeCardsReporting); syncCartelliniRendicontazioni(fluxId, tab, year, month, now, timeCardsReporting);
break; break;
// case "lavoro_fuori_sede":
// syncLavoroFuoriSede(fluxId,tab);
// break;
// case "aspettative":
// syncAspettative(fluxId,tab);
// break;
default: default:
break; break;
} }
@ -1074,8 +1030,7 @@ public class SyncService {
private void writeOffSiteWorksData(Long fluxId, List<TabsSI> tabsSI, String year, String month) throws Exception { private void writeOffSiteWorksData(Long fluxId, List<TabsSI> tabsSI, String year, String month) throws Exception {
logger.info("Report {}-{}", year, month); logger.info("Report {}-{}", year, month);
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
// checkValidMonthToSend(year, month);
for (TabsSI tab : tabsSI) { for (TabsSI tab : tabsSI) {
logger.info("TabSI: {}", tab); logger.info("TabSI: {}", tab);
if (tab.getOperazioni() != null && !tab.getOperazioni().isEmpty() 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 { private void writeLeavesData(Long fluxId, List<TabsSI> tabsSI, String year, String month) throws Exception {
logger.info("Report {}-{}", year, month); logger.info("Report {}-{}", year, month);
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
// checkValidMonthToSend(year, month);
for (TabsSI tab : tabsSI) { for (TabsSI tab : tabsSI) {
logger.info("TabSI: {}", tab); logger.info("TabSI: {}", tab);

View File

@ -125,7 +125,9 @@ application:
datasource-epas-rest: datasource-epas-rest:
#rest-url: https://epas-demo.devel.iit.cnr.it/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-username1:
rest-password1: rest-password1:
rest-username2: rest-username2:

View File

@ -145,7 +145,9 @@ application:
maximum-pool-size: 10 maximum-pool-size: 10
datasource-epas-rest: datasource-epas-rest:
#rest-url: https://epas-demo.devel.iit.cnr.it/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-username1:
rest-password1: rest-password1:
rest-username2: rest-username2:

View File

@ -13,7 +13,7 @@ spring:
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
url: jdbc:tc:postgresql:latest:///epasmed?TC_TMPFS=/testtmpfs:rw url: jdbc:tc:postgresql:latest:///epasmed?TC_TMPFS=/testtmpfs:rw
username: username: epasmed
password: password:
hikari: hikari:
poolName: Hikari poolName: Hikari

View File

@ -119,7 +119,9 @@ application:
datasource-epas-rest: datasource-epas-rest:
#rest-url: https://epas-demo.devel.iit.cnr.it/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-username1:
rest-password1: rest-password1:
rest-username2: rest-username2: