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:
+1
-1
@@ -50,7 +50,7 @@ public interface CalendarInstanceRepository extends JpaRepository<CalendarInstan
|
|||||||
Collection<CalendarInstance> findByCalendarIdAndEntityTypeId(Long calendarId, Integer entityTypeId);
|
Collection<CalendarInstance> findByCalendarIdAndEntityTypeId(Long calendarId, Integer entityTypeId);
|
||||||
|
|
||||||
/** 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("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,
|
List<CalendarInstance> findCalendarInstancesForActiveLoansByGroupIdAndClientId(@Param("groupId") Long groupId,
|
||||||
@Param("clientId") Long clientId);
|
@Param("clientId") Long clientId);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -234,7 +234,7 @@ public class GroupReadPlatformServiceImpl implements GroupReadPlatformService {
|
|||||||
|
|
||||||
final String name = searchCriteria.getName();
|
final String name = searchCriteria.getName();
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
paramList.add(ApiParameterHelper.sqlEncodeString("%" + name + "%"));
|
paramList.add("%" + name + "%");
|
||||||
extraCriteria.append(" and g.display_name like ? ");
|
extraCriteria.append(" and g.display_name like ? ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user