Done ticket GEPAFINBE-92
This commit is contained in:
@@ -7,5 +7,5 @@ import java.util.List;
|
||||
|
||||
public interface EmailLogRepository extends JpaRepository<EmailLogEntity,Long> {
|
||||
|
||||
List<EmailLogEntity> findByIdAndEmailTypeOrderByCreatedDateDesc(Long id, String emailType);
|
||||
List<EmailLogEntity> findByUserIdAndEntityIdAndEntityType(Long userId,Long entityId,String entityType);
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
package net.gepafin.tendermanagement.repositories;
|
||||
|
||||
import net.gepafin.tendermanagement.entities.EmailTrackingEntity;
|
||||
import net.gepafin.tendermanagement.entities.UserEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface EmailTrackingRepository extends JpaRepository<EmailTrackingEntity,Long> {
|
||||
|
||||
List<EmailTrackingEntity> findFirstByEntityTypeAndEntityIdAndUser(
|
||||
String entityType, Long entityId, UserEntity user
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user