Commit 322980a1 authored by chenzhao's avatar chenzhao

修改bug

parent d641df8d
......@@ -333,8 +333,7 @@
a.companyMaleEmployees,
a.companyFemaleEmployees,
a.managementType,
a. keySiteCompany as isKeyPoint
FROM
a. keySiteCompany as isKeyPoint,
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1) AS distance,
case when cks_d.count is null then 0 else cks_d.count end as keySiteNum
FROM important_companys a left join (
......@@ -346,7 +345,7 @@
and Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1) <=
#{par.distance}
</if>
ORDER BY distance limit #{pageNum},#{pageSize}
ORDER BY distance limit #{pageNum},#{pageSize}
</select>
<select id="listContractDtoCount" resultType="Integer">
......
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