Replace LeadCapturingRepository.java

parent 0e9c6c7f
......@@ -42,11 +42,11 @@ public interface LeadCapturingRepository extends JpaRepository<CrLeadDtl, Intege
// List<BranchDtlLead> getBranchListLead(@Param("userId") String paramString);
//Added by amol s on 03-dec 24 , to add validation of branchStatus --strt
// Added by Amol S to add-- for getBranchList
@Query("SELECT new com.a3spl.omnifin.model.BranchDtl(a.branchId, b.branchDesc) FROM SecUserBranchDtl a JOIN ComBranchM b ON (b.branchId = a.branchId AND b.recStatus = 'A' AND a.recStatus = 'A' AND b.branchStatus <> 'X') WHERE a.userId = :userId")
@Query("SELECT new com.a3spl.omnifin.model.BranchDtl(a.branchId, b.branchDesc) FROM SecUserBranchDtl a JOIN ComBranchM b ON (b.branchId = a.branchId AND b.recStatus = 'A' AND a.recStatus = 'A' AND (b.branchStatus = 'A' OR b.branchStatus IS NULL) ) WHERE a.userId = :userId")
List<BranchDtl> getBranchList(@Param("userId") String paramString);
// added by amol s --for getBranchListLead
@Query("SELECT new com.a3spl.omnifin.model.BranchDtlLead(a.branchId, b.branchDesc) FROM SecUserBranchDtl a JOIN ComBranchM b ON (b.branchId = a.branchId AND b.recStatus = 'A' AND a.recStatus = 'A' AND b.branchStatus <> 'X') WHERE a.userId = :userId")
@Query("SELECT new com.a3spl.omnifin.model.BranchDtlLead(a.branchId, b.branchDesc) FROM SecUserBranchDtl a JOIN ComBranchM b ON (b.branchId = a.branchId AND b.recStatus = 'A' AND a.recStatus = 'A' AND (b.branchStatus = 'A' OR b.branchStatus IS NULL)) WHERE a.userId = :userId")
List<BranchDtlLead> getBranchListLead(@Param("userId") String paramString);
//Added by amol s on 03-dec 24 , to add validation of branchStatus --end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment