wangliang 4 years ago
parent
commit
0311b3de6e
1 changed files with 5 additions and 10 deletions
  1. 5 10
      themis-business/src/main/resources/mapper/TBClientVersionMapper.xml

+ 5 - 10
themis-business/src/main/resources/mapper/TBClientVersionMapper.xml

@@ -12,20 +12,15 @@
         from
         t_b_client_version t
         <where>
-            EXISTS (
-            select
-            t1.id
-            from
-            (
-            select
+            t.id =
+            (select
             max(tbcv.id) as id
             from
             t_b_client_version tbcv
-            <where>1 = 1
-                and tbcv.enable = 1
+            <where>
+             tbcv.enable = 1
             </where>
-            ) t1
-            where t1.id = t.id)
+            )
         </where>
     </select>
 </mapper>