Commit 446c5b85 by zhouhaibao

[+]试驾服务

1 parent 35f60216
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,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 t6.del_flag = 0
and t5.id in(select max(id) from t_approval group by biz_id) 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}
...@@ -132,6 +133,7 @@ ...@@ -132,6 +133,7 @@
left join t_dict_data td on app.status=td.dict_value left join t_dict_data td on app.status=td.dict_value
where app.del_flag = 0 and app.status in (1,2,3) and td.dict_type='approval_status' where app.del_flag = 0 and app.status in (1,2,3) and td.dict_type='approval_status'
AND APP.biz_type=1 and t6.username is not null AND APP.biz_type=1 and t6.username is not null
and t6.del_flag = 0
<if test="search.approvalStatus !=null and search.approvalStatus != ''"> <if test="search.approvalStatus !=null and search.approvalStatus != ''">
and app.status=#{search.approvalStatus} and app.status=#{search.approvalStatus}
</if> </if>
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
WHERE WHERE
t1.del_flag = 0 t1.del_flag = 0
and t6.username is not null and t6.username is not null
and t6.del_flag = 0
<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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!