Commit 0acaa23b by levphon

bug修复或预防

1 parent 6dd3225a
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
from t_workorder tw from t_workorder tw
left join t_workorder_vehicle twv on twv.workorder_id = tw.id left join t_workorder_vehicle twv on twv.workorder_id = tw.id
left join t_vehicle tv on tv.workorder_id = tw.id and tv.del_flag = 0 left join t_vehicle tv on tv.workorder_id = tw.id and tv.del_flag = 0
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id and tvd.del_flag = 0 left join t_vehicle_device tvd on tvd.vehicle_id = tv.id and tvd.del_flag = 0 and tvd.bind_status = 1
left join t_user tu on tu.id = tw.created_by left join t_user tu on tu.id = tw.created_by
left join t_tenant tt on tt.id = tu.tenant_id left join t_tenant tt on tt.id = tu.tenant_id
where tw.del_flag = 0 where tw.del_flag = 0
...@@ -152,6 +152,8 @@ ...@@ -152,6 +152,8 @@
tw.created_date createdDate tw.created_date createdDate
from t_workorder tw from t_workorder tw
left join t_workorder_vehicle twv on twv.workorder_id = tw.id left join t_workorder_vehicle twv on twv.workorder_id = tw.id
left join t_vehicle tv on tv.workorder_id = tw.id and tv.del_flag = 0
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id and tvd.del_flag = 0 and tvd.bind_status = 1
left join t_user tu on tu.id = tw.created_by left join t_user tu on tu.id = tw.created_by
left join t_tenant tt on tt.id = tu.tenant_id left join t_tenant tt on tt.id = tu.tenant_id
where tw.del_flag = 0 where tw.del_flag = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!