Commit 476dc9d8 authored by 周健威's avatar 周健威

修改app查询公司问题

parent 6559efd4
...@@ -9,4 +9,7 @@ public class CompanySearchDTO { ...@@ -9,4 +9,7 @@ public class CompanySearchDTO {
Integer addrCity; Integer addrCity;
String lon; String lon;
String lat; String lat;
Integer state = 1;
Integer isShow = 1;
Integer isDel = 0;
} }
...@@ -36,6 +36,15 @@ ...@@ -36,6 +36,15 @@
<if test="lon != null and lat != null"> <if test="lon != null and lat != null">
and longitude is not null and latitude is not null and longitude is not null and latitude is not null
</if> </if>
<if test="state != null">
and state = #{state}
</if>
<if test="isShow != null">
and is_show = #{isShow}
</if>
<if test="isDel != null">
and is_del = #{isDel}
</if>
</where> </where>
<if test="lon != null and lat != null"> <if test="lon != null and lat != null">
order by distance asc order by distance asc
......
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