Commit 186ef274 by zhouhaibao

[+]试驾服务

1 parent d47cc21a
...@@ -21,6 +21,7 @@ public class FenceApproDto extends BaseAreaDto{ ...@@ -21,6 +21,7 @@ public class FenceApproDto extends BaseAreaDto{
private String approvalStatus; private String approvalStatus;
private String approvalResult; private String approvalResult;
private String fenceName; private String fenceName;
private String fenceId;
private String fenceType; private String fenceType;
private Integer fenceTypeId; private Integer fenceTypeId;
private Long bizId; private Long bizId;
......
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
app.status as approvalStatus, app.status as approvalStatus,
td.dict_label as approvalResult, td.dict_label as approvalResult,
app.biz_id as bizId, app.biz_id as bizId,
if(tvd.fence_id is null,'1','2') as isAdd if(tvd.fence_id is null,'1','2') as isAdd,
tvd.fence_id as fenceId
from t_approval app from t_approval app
left join t_electric_fence_copy tvd on app.biz_id = tvd.id and tvd.del_flag = 0 left join t_electric_fence_copy tvd on app.biz_id = tvd.id and tvd.del_flag = 0
left join t_trial_drive_shop shop on tvd.created_by=shop.created_by left join t_trial_drive_shop shop on tvd.created_by=shop.created_by
...@@ -134,6 +135,7 @@ ...@@ -134,6 +135,7 @@
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 and t6.del_flag = 0
and tvd.id is not null
<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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!