Commit f284523d by 杨林龙

优化试驾数据查询

1 parent b86bbb52
...@@ -31,8 +31,7 @@ ...@@ -31,8 +31,7 @@
tu.username shopName, tu.username shopName,
tefs.sn, tefs.sn,
tefs.vin, tefs.vin,
case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end vehicleTypeName
vehicleTypeName
from t_vehicle tv from t_vehicle tv
inner join t_electric_fence_sns tefs on tv.vin = tefs.vin inner join t_electric_fence_sns tefs on tv.vin = tefs.vin
inner join t_electric_fence tef on tef.id = tefs.fence_id inner join t_electric_fence tef on tef.id = tefs.fence_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!