소스 검색

修复智能查询BUG

wuhonghao 4 년 전
부모
커밋
ef692f0da1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      railway-business/src/main/resources/mapper/baseinfo/BusZzdzxxMapper.xml

+ 2 - 1
railway-business/src/main/resources/mapper/baseinfo/BusZzdzxxMapper.xml

@@ -946,8 +946,9 @@
       <if test="marker!=null and marker!=''">
         and abs(t.marker - ${marker})= (
         select min(abs(t.marker - ${marker})) FROM base_pillar t
-        left join v_station v on t.station_id = v.dept_station_id
+        left join v_station v on t.station_id = v.station_id
         where 1=1
+        and t.marker between v.up_start_marker and v.up_end_marker
         <if test="stationId!=null and stationId!=''">
           and t.station_id=#{stationId}
         </if>