Commit c45efc50 authored by 周健威's avatar 周健威

修改明细,车型检索等

parent 82346222
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
resultMap="searchUsableModelMap"> resultMap="searchUsableModelMap">
select distinct vm.id as model_id, bc.id as company_id select distinct vm.id as model_id, bc.id as company_id
<if test=" catas != null "> <if test=" catas != null ">
GROUP_CONCAT(vc.cata_id) as catas, ,GROUP_CONCAT(vc.cata_id) as catas
</if> </if>
<if test="lon != null and lat != null"> <if test="lon != null and lat != null">
,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance ,st_distance_sphere(point(#{lon}, #{lat}), point(bc.longitude, bc.latitude)) as distance
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
<if test=" cIndex != 0"> <if test=" cIndex != 0">
&amp; &amp;
</if> </if>
FIND_IN_SET(vc.cata_id,catas) FIND_IN_SET(#{cata.id},catas)
</foreach> </foreach>
) )
</foreach> </foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment