Refactored code for faq
This commit is contained in:
@@ -17,6 +17,7 @@ public interface FaqRepository extends JpaRepository<FaqEntity, Long> {
|
||||
Optional<FaqEntity> findById(@Param("id") Long id);
|
||||
|
||||
List<FaqEntity> findByCallIdAndIsDeletedFalse(Long callId);
|
||||
|
||||
Optional<FaqEntity> findByIdAndCallIdAndIsDeletedFalse(Long id, Long callId);
|
||||
|
||||
List<FaqEntity> findByCallIdAndLookupDataTypeAndIsDeletedFalse(Long callId, String type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user