Commit 7e9e76fb by 杨林龙

修改获取特约店名称和特约店代码的获取方式

1 parent 35f60216
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</select> </select>
<select id="searchTearDownAlarmList" resultMap="TearDownAlarmMap"> <select id="searchTearDownAlarmList" resultMap="TearDownAlarmMap">
SELECT SELECT distinct
ttds.area, ttds.area,
ttds.province, ttds.province,
ttds.city, ttds.city,
...@@ -149,9 +149,10 @@ ...@@ -149,9 +149,10 @@
tv.created_by tv.created_by
FROM t_vehicle tv FROM t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_trial_drive_shop ttds on ttds.created_by = tvd.created_by left join t_electric_fence_sns tefs on tefs.sn = tvd.sn
left join t_trial_drive_shop ttds on ttds.fence_id = tefs.fence_id
left join t_user tu on tu.id = tv.created_by left join t_user tu on tu.id = tv.created_by
where tvd.del_flag = 0 and tvd.bind_status = 1 and tu.del_flag = 0 where tv.del_flag = 0 and tvd.del_flag = 0 and tvd.bind_status = 1 and tu.del_flag = 0
<if test="keywords != null and keywords !=''"> <if test="keywords != null and keywords !=''">
and ( and (
tu.username like '%${keywords}%' tu.username like '%${keywords}%'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!