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 17 * @return
18 18 */
19 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 21 List<ScheduleRealInfo> findAll(String schDate);
22 22  
23 23 /**
... ... @@ -27,7 +27,7 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository&lt;S
27 27 * @return
28 28 */
29 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 31 List<ScheduleRealInfo> findAll(String schDate, String lineCode);
32 32  
33 33 /**
... ... @@ -36,6 +36,6 @@ public interface ScheduleRealInfoRepository extends PagingAndSortingRepository&lt;S
36 36 * @return
37 37 */
38 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 40 List<ScheduleRealInfo> findByDateLT(String schDate);
41 41 }
... ...
src/main/resources/application.properties
... ... @@ -15,4 +15,4 @@ server.compression.enabled=true
15 15 server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript
16 16  
17 17 #redis »º´æ¶àÉÙÌìµÄÊý¾Ý
18   -cache.days=10
  18 +cache.days=42
... ...