+2
-2
@@ -28,6 +28,6 @@ public interface CalendarInstanceRepository extends JpaRepository<CalendarInstan
|
|||||||
|
|
||||||
/** Should use in clause, can I do it without creating a new class? **/
|
/** Should use in clause, can I do it without creating a new class? **/
|
||||||
@Query("from CalendarInstance ci where ci.entityId in (select id from Loan loan where loan.client.id = :clientId and loan.group.id = :groupId and (loan.loanStatus = 100 or loan.loanStatus = 200 or loan.loanStatus = 300)) and ci.entityTypeId = 3")
|
@Query("from CalendarInstance ci where ci.entityId in (select id from Loan loan where loan.client.id = :clientId and loan.group.id = :groupId and (loan.loanStatus = 100 or loan.loanStatus = 200 or loan.loanStatus = 300)) and ci.entityTypeId = 3")
|
||||||
List<CalendarInstance> findCalendarInstancesForActiveLoansByGroupIdAndClientId(@Param("clientId") Long clientId,
|
List<CalendarInstance> findCalendarInstancesForActiveLoansByGroupIdAndClientId(@Param("groupId") Long groupId,
|
||||||
@Param("groupId") Long groupId);
|
@Param("clientId") Long clientId);
|
||||||
}
|
}
|
||||||
|
|||||||
-6
@@ -2485,10 +2485,6 @@ public class Loan extends AbstractPersistable<Long> {
|
|||||||
loanRepaymentInterval, frequency, workingDays);
|
loanRepaymentInterval, frequency, workingDays);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isHolidayEnabled) {
|
|
||||||
// reset repayment date with new meeting date
|
|
||||||
newRepaymentDate = CalendarUtils.getNewRepaymentMeetingDate(recuringRule, meetingStartDate, oldDueDate,
|
|
||||||
loanRepaymentInterval, frequency, workingDays);
|
|
||||||
if (isHolidayEnabled) {
|
if (isHolidayEnabled) {
|
||||||
newRepaymentDate = HolidayUtil.getRepaymentRescheduleDateToIfHoliday(newRepaymentDate, holidays);
|
newRepaymentDate = HolidayUtil.getRepaymentRescheduleDateToIfHoliday(newRepaymentDate, holidays);
|
||||||
}
|
}
|
||||||
@@ -2501,8 +2497,6 @@ public class Loan extends AbstractPersistable<Long> {
|
|||||||
}else {
|
}else {
|
||||||
tmpFromDate = oldDueDate;
|
tmpFromDate = oldDueDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user