Commit 21784996 by 杨林龙

展示试驾列表的时候 拆分设备号

1 parent d8d82a14
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
tv.id , tv.id ,
tv.vin , tv.vin ,
tv.owner_name as ownerName, tv.owner_name as ownerName,
GROUP_CONCAT(td.sn) as sns td.sn as sns
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_device td on td.sn = tvd.sn left join t_device td on td.sn = tvd.sn
...@@ -420,7 +420,6 @@ ...@@ -420,7 +420,6 @@
<if test="shopId != null and shopId !=''"> <if test="shopId != null and shopId !=''">
and tu.id = #{shopId} and tu.id = #{shopId}
</if> </if>
GROUP BY tv.vin order by tv.created_date desc,tv.id
order by tv.created_date desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!