Commit 33fba4d2 by levphon

修复bug

1 parent 7164e508
...@@ -68,12 +68,11 @@ ...@@ -68,12 +68,11 @@
tef.created_by createdBy, tef.created_by createdBy,
tu.username creator tu.username creator
from t_electric_fence tef from t_electric_fence tef
left join t_electric_fence_sns tefs on tefs.fence_id = tef.id left join t_electric_fence_sns tefs on tefs.fence_id = tef.id and tefs.del_flag = 0
left join t_vehicle_device tvd on tvd.id = tefs.vd_id and tvd.bind_status = 1 left join t_vehicle_device tvd on tvd.id = tefs.vd_id and tvd.bind_status = 1 and tvd.del_flag = 0
left join t_vehicle tv on tv.id = tvd.vehicle_id left join t_vehicle tv on tv.id = tvd.vehicle_id and tv.del_flag = 0
left join t_user tu on tu.id = tef.created_by left join t_user tu on tu.id = tef.created_by
where tef.del_flag = 0 and tefs.del_flag = 0 where tef.del_flag = 0
and tv.del_flag = 0 and tvd.del_flag = 0
and tef.biz_fence_type in (14) and tef.biz_fence_type in (14)
<if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''"> <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''">
<choose> <choose>
...@@ -123,12 +122,11 @@ ...@@ -123,12 +122,11 @@
tef.created_by createdBy, tef.created_by createdBy,
tu.username creator tu.username creator
from t_electric_fence tef from t_electric_fence tef
left join t_electric_fence_sns tefs on tefs.fence_id = tef.id left join t_electric_fence_sns tefs on tefs.fence_id = tef.id and tefs.del_flag = 0
left join t_vehicle_device tvd on tvd.id = tefs.vd_id and tvd.bind_status = 1 left join t_vehicle_device tvd on tvd.id = tefs.vd_id and tvd.bind_status = 1 and tvd.del_flag = 0
left join t_vehicle tv on tv.id = tvd.vehicle_id left join t_vehicle tv on tv.id = tvd.vehicle_id and tv.del_flag = 0
left join t_user tu on tu.id = tef.created_by left join t_user tu on tu.id = tef.created_by
where tef.del_flag = 0 and tefs.del_flag = 0 where tef.del_flag = 0
and tv.del_flag = 0 and tvd.del_flag = 0
and tef.biz_fence_type in (14) and tef.biz_fence_type in (14)
<if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''"> <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''">
<choose> <choose>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!