FINERACT-122 added clientId, officeId, and groupId.
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
110684bf30
commit
eb8a3572ae
+26
-6
@@ -282,8 +282,14 @@ public class LoanRescheduleRequestWritePlatformServiceImpl implements LoanResche
|
|||||||
this.loanRescheduleRequestRepository.save(loanRescheduleRequest);
|
this.loanRescheduleRequestRepository.save(loanRescheduleRequest);
|
||||||
this.loanRepositoryWrapper.save(loan);
|
this.loanRepositoryWrapper.save(loan);
|
||||||
|
|
||||||
return new CommandProcessingResultBuilder().withCommandId(jsonCommand.commandId()).withEntityId(loanRescheduleRequest.getId())
|
return new CommandProcessingResultBuilder()
|
||||||
.withLoanId(loan.getId()).build();
|
.withCommandId(jsonCommand.commandId())
|
||||||
|
.withEntityId(loanRescheduleRequest.getId())
|
||||||
|
.withLoanId(loan.getId())
|
||||||
|
.withClientId(loan.getClientId())
|
||||||
|
.withOfficeId(loan.getOfficeId())
|
||||||
|
.withGroupId(loan.getGroupId())
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (final DataIntegrityViolationException dve) {
|
catch (final DataIntegrityViolationException dve) {
|
||||||
@@ -485,8 +491,15 @@ public class LoanRescheduleRequestWritePlatformServiceImpl implements LoanResche
|
|||||||
|
|
||||||
this.loanAccountDomainService.recalculateAccruals(loan, true);
|
this.loanAccountDomainService.recalculateAccruals(loan, true);
|
||||||
|
|
||||||
return new CommandProcessingResultBuilder().withCommandId(jsonCommand.commandId()).withEntityId(loanRescheduleRequestId)
|
return new CommandProcessingResultBuilder()
|
||||||
.withLoanId(loanRescheduleRequest.getLoan().getId()).with(changes).build();
|
.withCommandId(jsonCommand.commandId())
|
||||||
|
.withEntityId(loanRescheduleRequestId)
|
||||||
|
.withLoanId(loanRescheduleRequest.getLoan().getId())
|
||||||
|
.with(changes)
|
||||||
|
.withClientId(loan.getClientId())
|
||||||
|
.withOfficeId(loan.getOfficeId())
|
||||||
|
.withGroupId(loan.getGroupId())
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (final DataIntegrityViolationException dve) {
|
catch (final DataIntegrityViolationException dve) {
|
||||||
@@ -563,8 +576,15 @@ public class LoanRescheduleRequestWritePlatformServiceImpl implements LoanResche
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new CommandProcessingResultBuilder().withCommandId(jsonCommand.commandId()).withEntityId(loanRescheduleRequestId)
|
return new CommandProcessingResultBuilder()
|
||||||
.withLoanId(loanRescheduleRequest.getLoan().getId()).with(changes).build();
|
.withCommandId(jsonCommand.commandId())
|
||||||
|
.withEntityId(loanRescheduleRequestId)
|
||||||
|
.withLoanId(loanRescheduleRequest.getLoan().getId())
|
||||||
|
.with(changes)
|
||||||
|
.withClientId(loanRescheduleRequest.getLoan().getClientId())
|
||||||
|
.withOfficeId(loanRescheduleRequest.getLoan().getOfficeId())
|
||||||
|
.withGroupId(loanRescheduleRequest.getLoan().getGroupId())
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (final DataIntegrityViolationException dve) {
|
catch (final DataIntegrityViolationException dve) {
|
||||||
|
|||||||
Reference in New Issue
Block a user