fix: error min transaction and env = PROD

pull/5/head
Frédérik Benoist 2023-11-22 00:37:47 +01:00
parent 3c1ccc4a2c
commit 05e5b334f7
4 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ public class StoreService {
"FROM COM02.STRUCTURE st " +
"LEFT OUTER JOIN omni.ASPD_XSTO_STRUCTURE axs ON st.ID_STRUCTURE = axs.ID_STRUCTURE " +
"JOIN COM02.hotline_structure_caisse hsc ON hsc.id_structure = st.id_structure AND hsc.id_caisse = 1 " +
"WHERE st.id_structure < 50 AND hsc.ip IS NOT NULL AND st.ID_NIVEAU=4 AND st.STATUT=2 " +
"WHERE st.id_structure < 9999 AND hsc.ip IS NOT NULL AND st.ID_NIVEAU=4 AND st.STATUT=2 " +
"ORDER BY st.id_structure";
try (PreparedStatement statement = databaseConnection.getConnection().prepareStatement(query);
@ -246,7 +246,7 @@ public class StoreService {
" CASE WHEN TRUNC(MAX(cf.fdate)) = TRUNC(SYSDATE )THEN 1 ELSE 0 END AS backOfficeTransactionOk "+
"FROM com02.client_facture cf " +
"WHERE cf.id_structure = ? " +
"AND TRUNC(cf.fdate_integration) = TRUNC(SYSDATE-2) " + //TODO : changer la date
"AND TRUNC(cf.fdate_integration) = TRUNC(SYSDATE) " + //TODO : changer la date
"AND cf.version_info = 'XSTORE'";
logger.info(transactionQuery);

View File

@ -18,7 +18,7 @@ public class StoreReplication {
public StoreReplication(boolean pendingReplicationOk, int pendingReplications, Date minPendingReplicationDate, Date maxPendingReplicationDate) {
this.pendingReplicationOk = pendingReplicationOk;
this.pendingReplications = pendingReplications;
this.minPendingReplicationDate = maxPendingReplicationDate;
this.minPendingReplicationDate = minPendingReplicationDate;
this.maxPendingReplicationDate = maxPendingReplicationDate;
}

View File

@ -9,7 +9,7 @@ preprod.db.oai.password=base
preprod.db.com02.password=B1Xto9pAbtBCOxuecG7W
# Production environment settings (prod)
prod.db.url=jdbc:oracle:thin:@paspdi-mgmt.adic.lan.adic.lan:1521/IASPDI
prod.db.url=jdbc:oracle:thin:@v-aspd-b03-ip-d.adic.lan:1521/PASPDI
prod.db.oai.password=base
prod.db.com02.password=com20

View File

@ -1,2 +1,2 @@
# Indicates the current environment (dev, preprod, prod, etc.).
environment=preprod
environment=prod