Commit bdb9289e89102b31c34da6bdb91303dc41b525c2
1 parent
795b4905
油量
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/repository/oil/YlbRepository.java
| @@ -23,7 +23,7 @@ public interface YlbRepository extends BaseRepository<Ylb, Integer>{ | @@ -23,7 +23,7 @@ public interface YlbRepository extends BaseRepository<Ylb, Integer>{ | ||
| 23 | @Modifying | 23 | @Modifying |
| 24 | @Query(value="SELECT a.* FROM bsth_c_ylb a where to_days(?1)-to_days(a.rq)=1" | 24 | @Query(value="SELECT a.* FROM bsth_c_ylb a where to_days(?1)-to_days(a.rq)=1" |
| 25 | + " and jcsx=(select max(b.jcsx) from bsth_c_ylb b where a.nbbm=b.nbbm and " | 25 | + " and jcsx=(select max(b.jcsx) from bsth_c_ylb b where a.nbbm=b.nbbm and " |
| 26 | - + " to_days(?1)-to_days(b.rq)=1 ) group by nbbm",nativeQuery=true) | 26 | + + " to_days(?1)-to_days(b.rq)=1 )",nativeQuery=true) |
| 27 | List<Ylb> obtainYlbefore(String rq); | 27 | List<Ylb> obtainYlbefore(String rq); |
| 28 | 28 | ||
| 29 | /** | 29 | /** |