From d32cb542acc3187dd7b909df56304a3ee40128b9 Mon Sep 17 00:00:00 2001 From: tabrez-fiter Date: Thu, 21 Nov 2024 14:10:06 +0800 Subject: [PATCH] SU-441 : Archivo cartera - Report --- .../portfolio/loanaccount/data/LoanArchiveHistoryData.java | 1 + .../portfolio/loanaccount/domain/LoanArchiveHistory.java | 2 ++ .../jobs/archiveloanhistory/ArchiveLoansHistoryTasklet.java | 4 ++-- .../LoanArchiveHistoryServiceReadWritePlatformImpl.java | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanArchiveHistoryData.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanArchiveHistoryData.java index 097e5f24f16..8c58a81b189 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanArchiveHistoryData.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanArchiveHistoryData.java @@ -63,6 +63,7 @@ public class LoanArchiveHistoryData { private Integer numeroDeReprogramaciones; private String departamento; private String estadoCuota; + private String celularReferencia; private String referencia; private String nitEmpresaAliada; } diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanArchiveHistory.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanArchiveHistory.java index b7fb36aa675..a5069345ca7 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanArchiveHistory.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanArchiveHistory.java @@ -134,4 +134,6 @@ public class LoanArchiveHistory { private BigDecimal montoInicial; @Column(name = "nit_empresa_aliada") private String nitEmpresaAliada; + @Column(name = "celular_familiar_1") + private String celularReferencia; } diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/jobs/archiveloanhistory/ArchiveLoansHistoryTasklet.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/jobs/archiveloanhistory/ArchiveLoansHistoryTasklet.java index 29067f0f703..8195ef31055 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/jobs/archiveloanhistory/ArchiveLoansHistoryTasklet.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/jobs/archiveloanhistory/ArchiveLoansHistoryTasklet.java @@ -220,7 +220,7 @@ public RepeatStatus execute(StepContribution contribution, ChunkContext chunkCon existingEntry.setNitEmpresa("800139398"); existingEntry.setTelefonoSac(dataLoan.getTelefonoSac()); existingEntry.setCelularSac(dataLoan.getCelularSac()); - existingEntry.setCelularSac2(dataLoan.getCelularSac2()); + existingEntry.setCelularReferencia(dataLoan.getCelularReferencia()); existingEntry.setEmailSac(dataLoan.getEmailSac()); existingEntry.setDireccionSac(dataLoan.getDireccionSac()); existingEntry.setBarrioSac("OTRO"); @@ -283,7 +283,7 @@ public RepeatStatus execute(StepContribution contribution, ChunkContext chunkCon loanArchiveHistory.setNitEmpresa("800139398"); loanArchiveHistory.setTelefonoSac(dataLoan.getTelefonoSac()); loanArchiveHistory.setCelularSac(dataLoan.getCelularSac()); - loanArchiveHistory.setCelularSac2(dataLoan.getCelularSac2()); + loanArchiveHistory.setCelularReferencia(dataLoan.getCelularReferencia()); loanArchiveHistory.setEmailSac(dataLoan.getEmailSac()); loanArchiveHistory.setDireccionSac(dataLoan.getDireccionSac()); loanArchiveHistory.setBarrioSac("OTRO"); diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/rescheduleloan/service/LoanArchiveHistoryServiceReadWritePlatformImpl.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/rescheduleloan/service/LoanArchiveHistoryServiceReadWritePlatformImpl.java index fc894053d5a..94cfd7750a4 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/rescheduleloan/service/LoanArchiveHistoryServiceReadWritePlatformImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/rescheduleloan/service/LoanArchiveHistoryServiceReadWritePlatformImpl.java @@ -84,7 +84,7 @@ public LoanArchiveHistoryData mapRow(ResultSet rs, int rowNum) throws SQLExcepti .ingresos(rs.getBigDecimal("media_de_ingreso")).antiguedadCliente(rs.getString("disbursedon_date")) .actividadLaboral(rs.getString("activeLab")).creSaldo(rs.getBigDecimal("cupo")).cuoSaldo(rs.getBigDecimal("cupo")) .cuoEstado(rs.getString("name_of_reason")).estadoCivil(rs.getString("estado_civil")) - .tipoDocumento(rs.getString("tipo_documento")).celularSac2(rs.getString("celular_referencia")) + .tipoDocumento(rs.getString("tipo_documento")).celularReferencia(rs.getString("celular_referencia")) .referencia(rs.getString("referencia")).empresaLabora(rs.getString("nombre_empresa")) .nitEmpresaAliada(rs.getString("nit_empresa_aliada")).fechaNacimiento(rs.getString("date_of_birth")) .estadoCuota(rs.getString("creaditBlock")).build();