소스 검색

适配达梦数据库

hexiao 1 년 전
부모
커밋
7038926b8c
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      business-service/src/main/resources/mapper/BaseDeviceDynamicManagementMapper.xml

+ 3 - 2
business-service/src/main/resources/mapper/BaseDeviceDynamicManagementMapper.xml

@@ -17,7 +17,8 @@
         FROM
         base_vehicle_terminal AS a ,
         (
-        select vp.*
+        select * from vehicle_position AS gb_vp where gb_vp.terminal_code in(
+        select vp.terminal_code
         from vehicle_position vp
         where not exists (
         select 1
@@ -35,7 +36,7 @@
             and df.curren_time > vp.curren_time
         </where>
         )
-        GROUP BY vp.terminal_code ) AS l
+        GROUP BY vp.terminal_code ) ) AS l
         <where>
             a.terminal_code=l.terminal_code
             <if test="railwayCode != null and railwayCode !=''">