Commit f811b089 by zhouhaibao

[+]试驾服务

1 parent 5f5b7a7e
......@@ -90,7 +90,7 @@
ta.remark approvalRemark
from t_electric_fence tef
left join t_user tu on tu.id = tef.created_by
left join t_trial_drive_shop ttds on ttds.created_by = tu.id
left join t_trial_drive_shop ttds on ttds.created_by = tu.id and ttds.del_flag = 0
left join t_electric_fence_copy tefc on tefc.fence_id = tef.id
left join (select * from t_approval where id in (select MAX(id) from t_approval group by biz_id,biz_type)) ta on ta.biz_id = tefc.id and ta.biz_type = 1
where tef.del_flag = 0 and ttds.del_flag = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!