Commit f6121b71 by 向延琳

修改车辆总数

1 parent acb3eb70
...@@ -123,8 +123,11 @@ ...@@ -123,8 +123,11 @@
<select id="countDeviceWithAuth" resultType="java.lang.Integer"> <select id="countDeviceWithAuth" resultType="java.lang.Integer">
select count(tv.id) select count(tv.id)
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
<where> <where>
and tv.del_flag = 0 and tv.del_flag = 0
and tvd.bind_status = 1
and tvd.del_flag = 0
<!-- and tv.validate_status = 1--> <!-- and tv.validate_status = 1-->
<if test="search.appendSql != null and search.appendSql !=''"> <if test="search.appendSql != null and search.appendSql !=''">
${search.appendSql} ${search.appendSql}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!