FINERACT-571 Unable to transfer clients from one group to another group even though both groups are under same center and office

This commit is contained in:
Nazeer Hussain Shaik
2017-12-04 10:46:13 +05:30
parent a42f9d5268
commit cef41855a2
2 changed files with 2 additions and 2 deletions
@@ -50,7 +50,7 @@ public interface CalendarInstanceRepository extends JpaRepository<CalendarInstan
Collection<CalendarInstance> findByCalendarIdAndEntityTypeId(Long calendarId, Integer entityTypeId);
/** Should use in clause, can I do it without creating a new class? **/
@Query("select ci 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("select ci from CalendarInstance ci where ci.entityId in (select loan.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("groupId") Long groupId,
@Param("clientId") Long clientId);
@@ -234,7 +234,7 @@ public class GroupReadPlatformServiceImpl implements GroupReadPlatformService {
final String name = searchCriteria.getName();
if (name != null) {
paramList.add(ApiParameterHelper.sqlEncodeString("%" + name + "%"));
paramList.add("%" + name + "%");
extraCriteria.append(" and g.display_name like ? ");
}