Commit 322980a1 authored by chenzhao's avatar chenzhao

修改bug

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