Commit 0326e2b6 by 杨林龙

优化SQL查询接口

1 parent 4fddb635
......@@ -55,8 +55,7 @@
SELECT tall.shopCode, tall.shopName, tall.vehicleTypeName, tall.sn, tall.vin, left(tall.statDate,7)
statDate, tall.cnt, day(tall.statDate) dayCount , sum(cnt) cnttotal FROM (select tu.account shopCode,
tu.username shopName,
case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end
vehicleTypeName,
case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end vehicleTypeName,
tefdd.sn,
tv.vin,
DATE_FORMAT(tefdd.journey_time,'%Y-%m-%d') statDate,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!