Ver código fonte

数据库小写

licailing 4 anos atrás
pai
commit
a7f61b4170

+ 2 - 2
src/main/java/com/izouma/wenlvju/repo/performance/PerformanceRepo.java

@@ -18,11 +18,11 @@ public interface PerformanceRepo extends JpaRepository<Performance, Long>, JpaSp
 
     Performance findByYear(String year);
 
-    @Query(nativeQuery = true, value = "select * from Performance order by `year` desc limit 0,1")
+    @Query(nativeQuery = true, value = "select * from performance order by `year` desc limit 0,1")
     Performance findLastYear();
 
     List<Performance> findAllByPublishTrue();
 
-    @Query(nativeQuery = true, value = "select id from Performance where start_date <= ?1 and end_date >= ?1 and del=0")
+    @Query(nativeQuery = true, value = "select id from performance where start_date <= ?1 and end_date >= ?1 and del=0")
     Long findNow(LocalDate now);
 }