Commit 8811d115 by 向延琳

修正sql

1 parent b61d163c
...@@ -1022,8 +1022,9 @@ ...@@ -1022,8 +1022,9 @@
<select id="countJourneyDetailList" resultType="java.lang.Integer"> <select id="countJourneyDetailList" resultType="java.lang.Integer">
select count(1) select count(1)
from t_device_journey tdj
left join t_vehicle_device tvd on tvd.id = tdj.vd_id left join t_vehicle_device tvd on tvd.id = tdj.vd_id
left join t_vehicle tv on tvd.id = tvd.vehicle_id left join t_vehicle tv on tv.id = tvd.vehicle_id
left join t_device td on td.sn = tvd.sn left join t_device td on td.sn = tvd.sn
left join t_workorder tw on tw.id = tv.workorder_id and tw.del_flag = 0 left join t_workorder tw on tw.id = tv.workorder_id and tw.del_flag = 0
where tv.del_flag = 0 where tv.del_flag = 0
...@@ -1036,7 +1037,6 @@ ...@@ -1036,7 +1037,6 @@
<if test="sn != null and sn !=''"> <if test="sn != null and sn !=''">
and tvd.sn = #{sn} and tvd.sn = #{sn}
</if> </if>
order by tvd.id desc
</select> </select>
<select id="getActiveDeviceInfoWithAuth" resultType="cn.com.glsx.admin.modules.model.ActiveDeviceVo"> <select id="getActiveDeviceInfoWithAuth" resultType="cn.com.glsx.admin.modules.model.ActiveDeviceVo">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!