版本管理 版本重复校验
This commit is contained in:
@@ -13,6 +13,6 @@ import org.springframework.data.jpa.repository.Query;
|
|||||||
**/
|
**/
|
||||||
public interface TbVersionRepository extends JpaRepository<TbVersion, Integer>, JpaSpecificationExecutor<TbVersion> {
|
public interface TbVersionRepository extends JpaRepository<TbVersion, Integer>, JpaSpecificationExecutor<TbVersion> {
|
||||||
|
|
||||||
@Query("SELECT count(1) FROM TbVersion WHERE source = :name AND type =:type AND version =:version")
|
@Query("SELECT count(1) FROM TbVersion WHERE source = :source AND type =:type AND version =:version")
|
||||||
int isExist(@Param("type") String type, @Param("name") String name, @Param("version") String version);
|
int isExist(@Param("source") String source, @Param("type") String type, @Param("version") String version);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user