Skip to content

Commit

Permalink
hotfix: renaming issue fixed on entity and reconcilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Czeladka committed Nov 7, 2024
1 parent d60a660 commit e999f74
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public List<Object[]> findAllReconciliationSpecial(Set<ReconciliationRejectionCo
@Override
public List<Object[]> findAllReconciliationSpecialCount(Set<ReconciliationRejectionCodeRequest> rejectionCodes, Optional<LocalDate> getDateFrom, Integer limit, Integer page) {
val jpql = "SELECT count(rv.transactionId) " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"LEFT JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) ";
Expand Down Expand Up @@ -181,7 +181,7 @@ public List<TransactionEntity> findAllReconciliationCount(ReconciliationFilterSt
public Object findCalcReconciliationStatistic() {
String missingInERP = "select count(missingInERP) from ( " +
"SELECT rv.transactionId missingInERP " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) " +
Expand All @@ -191,7 +191,7 @@ public Object findCalcReconciliationStatistic() {

String newInERP = "select count(newInERP) from ( " +
"SELECT rv.transactionId newInERP " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) " +
Expand All @@ -201,7 +201,7 @@ public Object findCalcReconciliationStatistic() {

String inProcessing = "select count(inProcessing) from ( " +
"SELECT rv.transactionId inProcessing " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) " +
Expand All @@ -211,7 +211,7 @@ public Object findCalcReconciliationStatistic() {

String newVersionNotPublished = "select count(newVersionNotPublished) from ( " +
"SELECT rv.transactionId newVersionNotPublished " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) " +
Expand All @@ -222,7 +222,7 @@ public Object findCalcReconciliationStatistic() {

String newVersion = "select count(newVersion) from ( " +
"SELECT rv.transactionId newVersion " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) " +
Expand All @@ -241,7 +241,7 @@ public Object findCalcReconciliationStatistic() {

String txNok = "select count(txNok) from ( " +
"SELECT rv.transactionId txNok " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id or tr.id IS NULL) " +
Expand All @@ -264,7 +264,7 @@ public Object findCalcReconciliationStatistic() {

private String reconciliationQuery(Set<ReconciliationRejectionCodeRequest> rejectionCodes, Optional<LocalDate> getDateFrom) {
String jpql = "SELECT tr, rv " +
"FROM accounting_reporting_core.ReconcilationEntity r " +
"FROM accounting_reporting_core.reconcilation.ReconcilationEntity r " +
"JOIN r.violations rv " +
"FULL JOIN accounting_reporting_core.TransactionEntity tr ON rv.transactionId = tr.id " +
"WHERE (r.id = tr.lastReconcilation.id OR tr.lastReconcilation.id IS NULL) ";
Expand Down

0 comments on commit e999f74

Please sign in to comment.