Commit 2a1195f9 by zhouhaibao

[+]试驾服务

1 parent ffc321f3
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
t1.del_flag = 0 t1.del_flag = 0
and t5.status in (1,2,3) and t5.status in (1,2,3)
and t5.biz_type=2 and t5.biz_type=2
and t5.id in(select max(id) from t_approval group by biz_id)
<if test="search.approvalStatus !=null and search.approvalStatus != ''"> <if test="search.approvalStatus !=null and search.approvalStatus != ''">
and t5.status=#{search.approvalStatus} and t5.status=#{search.approvalStatus}
</if> </if>
......
...@@ -53,7 +53,8 @@ ...@@ -53,7 +53,8 @@
t5.status as status, t5.status as status,
(select dict_label from t_dict_data where dict_value=t5.status and dict_type = 'approval_status') AS approvalStatus, (select dict_label from t_dict_data where dict_value=t5.status and dict_type = 'approval_status') AS approvalStatus,
max(t5.created_date) as created_date, max(t5.created_date) as created_date,
t5.id t5.id,
t5.remark as remark
FROM FROM
t_vehicle t1 t_vehicle t1
LEFT JOIN (select * from (select * from t_approval ORDER BY id desc)t group by t.biz_id,t.biz_type) t5 ON (t1.ID = t5.biz_id AND t5.biz_type=2) LEFT JOIN (select * from (select * from t_approval ORDER BY id desc)t group by t.biz_id,t.biz_type) t5 ON (t1.ID = t5.biz_id AND t5.biz_type=2)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!