@@ -14,6 +14,6 @@ public interface PatentRepo extends JpaRepository<Patent, Long>, JpaSpecificatio
@Transactional
void softDelete(Long id);
- @Query(nativeQuery = true, value = "select ifnull(max(sort + 1),1) from patent where del = true")
+ @Query(nativeQuery = true, value = "select ifnull(max(sort + 1),1) from patent where del = false")
int findMax();
}