Commit 51cbea7c3aeee321c474e52fa1a9e9fa82538886

Authored by 潘钊
1 parent 643e306c

update...

src/main/java/com/bsth/repository/ScheduleRealInfoRepository.java
@@ -17,7 +17,7 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository<S @@ -17,7 +17,7 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository<S
17 * @return 17 * @return
18 */ 18 */
19 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) 19 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
20 - @Query("select s from ScheduleRealInfo s where s.scheduleDateStr=?1") 20 + @Query("select DISTINCT s from ScheduleRealInfo s where s.scheduleDateStr=?1")
21 List<ScheduleRealInfo> findAll(String schDate); 21 List<ScheduleRealInfo> findAll(String schDate);
22 22
23 /** 23 /**
@@ -27,7 +27,7 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository&lt;S @@ -27,7 +27,7 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository&lt;S
27 * @return 27 * @return
28 */ 28 */
29 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) 29 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
30 - @Query("select s from ScheduleRealInfo s where s.scheduleDateStr=?1 and s.xlBm=?2") 30 + @Query("select DISTINCT s from ScheduleRealInfo s where s.scheduleDateStr=?1 and s.xlBm=?2")
31 List<ScheduleRealInfo> findAll(String schDate, String lineCode); 31 List<ScheduleRealInfo> findAll(String schDate, String lineCode);
32 32
33 /** 33 /**
@@ -36,6 +36,6 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository&lt;S @@ -36,6 +36,6 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository&lt;S
36 * @return 36 * @return
37 */ 37 */
38 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) 38 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
39 - @Query("select s from ScheduleRealInfo s where s.scheduleDateStr>?1") 39 + @Query("select DISTINCT s from ScheduleRealInfo s where s.scheduleDateStr>?1")
40 List<ScheduleRealInfo> findByDateLT(String schDate); 40 List<ScheduleRealInfo> findByDateLT(String schDate);
41 } 41 }
src/main/resources/application.properties
@@ -15,4 +15,4 @@ server.compression.enabled=true @@ -15,4 +15,4 @@ server.compression.enabled=true
15 server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript 15 server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript
16 16
17 #redis »º´æ¶àÉÙÌìµÄÊý¾Ý 17 #redis »º´æ¶àÉÙÌìµÄÊý¾Ý
18 -cache.days=10 18 +cache.days=42