From a70d9a216ce59d5cef380104c5cd543cd39cbb1a Mon Sep 17 00:00:00 2001 From: Ravi Shanigarapu Date: Mon, 4 Nov 2024 20:47:31 +0530 Subject: [PATCH] missed file --- .../common/repo/customization/SectionAndFieldsMappingRepo.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/iemr/common/repo/customization/SectionAndFieldsMappingRepo.java b/src/main/java/com/iemr/common/repo/customization/SectionAndFieldsMappingRepo.java index 038e34ef..e58f220b 100644 --- a/src/main/java/com/iemr/common/repo/customization/SectionAndFieldsMappingRepo.java +++ b/src/main/java/com/iemr/common/repo/customization/SectionAndFieldsMappingRepo.java @@ -16,8 +16,7 @@ public interface SectionAndFieldsMappingRepo extends CrudRepository findBySectionIdAndSectionNameAndServiceProviderId( // @Param("sectionId") Integer sectionId, @Param("serviceProviderId") Integer serviceProviderId); - - @Query("SELECT sfm FROM SectionAndFieldsMapping sfm WHERE sfm.fieldName = :fieldName AND (sfm.serviceProviderId = :serviceProviderId OR sfm.serviceProviderId = 0) AND (sfm.projectId = :projectId OR sfm.projectId = 0)") + @Query("SELECT sfm FROM SectionAndFieldsMapping sfm WHERE sfm.sectionId = :sectionId AND (sfm.serviceProviderId = :serviceProviderId OR sfm.serviceProviderId= 0) AND (sfm.projectId = :projectId OR sfm.projectId= 0)") List findSectionIdAndSectionNameAndServiceProviderId( @Param("sectionId") Integer sectionId, @Param("serviceProviderId") Integer serviceProviderId, @Param("projectId") Integer projectId);