wangliang
4 years ago
|
@@ -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>
|