Commit 26512b9b7f211e501ec9042a97b91514cf227e55
1 parent
ae14a837
场外加油用车辆排序
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/repository/oil/CwjyRepository.java
| @@ -27,7 +27,7 @@ public interface CwjyRepository extends BaseRepository<Cwjy, Integer>{ | @@ -27,7 +27,7 @@ public interface CwjyRepository extends BaseRepository<Cwjy, Integer>{ | ||
| 27 | " ) c on a.nbbm=c.nbbm where a.nbbm like %?2% ",nativeQuery=true) | 27 | " ) c on a.nbbm=c.nbbm where a.nbbm like %?2% ",nativeQuery=true) |
| 28 | List<Object[]> obtainCwjycl(String rq,String nbbm); | 28 | List<Object[]> obtainCwjycl(String rq,String nbbm); |
| 29 | 29 | ||
| 30 | - @Query(value="select * from bsth_c_cwjy where nbbm like %?1% and gsdm like %?2% and fgsdm like %?3%",nativeQuery=true) | 30 | + @Query(value="select * from bsth_c_cwjy where nbbm like %?1% and gsdm like %?2% and fgsdm like %?3% order by nbbm",nativeQuery=true) |
| 31 | List<Cwjy> selectAll(String nbbm,String gsdm,String fgsdm); | 31 | List<Cwjy> selectAll(String nbbm,String gsdm,String fgsdm); |
| 32 | 32 | ||
| 33 | @Query(value="select * from bsth_c_cwjy where nbbm like %?1% and gsdm like %?2% and fgsdm like %?3% and line =?4",nativeQuery=true) | 33 | @Query(value="select * from bsth_c_cwjy where nbbm like %?1% and gsdm like %?2% and fgsdm like %?3% and line =?4",nativeQuery=true) |