Done ticket GEPAFINBE-205 Handled the old and new vatCheck company json through versioning.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package net.gepafin.tendermanagement.repositories;
|
||||
|
||||
import net.gepafin.tendermanagement.entities.GlobalConfigEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
|
||||
public interface GlobalConfigRepository extends JpaRepository<GlobalConfigEntity, Long> {
|
||||
|
||||
@Query("SELECT gc.content FROM GlobalConfigEntity gc WHERE gc.type = :vatCheckApiVersion AND gc.isDeleted = false")
|
||||
String findContentByTypeAndIsDeletedFalse(String vatCheckApiVersion);
|
||||
}
|
||||
Reference in New Issue
Block a user