Commit 51cbea7c3aeee321c474e52fa1a9e9fa82538886
1 parent
643e306c
update...
Showing
2 changed files
with
4 additions
and
4 deletions
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<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<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