Commit 72e7eb28 by guojuxing

溢出门店添加地区模糊查询

parent 22d88e63
......@@ -348,7 +348,8 @@
((6378.137 * acos(cos(radians(#{store.latitude})) * cos(radians(latitude)) * cos(radians(longitude) - radians(#{store.longitude})) + sin(radians(#{store.latitude})) * sin(radians(latitude))))*1000) AS distance
from tab_store_info t1,tab_store t2 where t1.store_info_id = t2.store_info_id
<if test="store.search != null and store.search !=''">
and (t1.store_name like concat('%', #{store.search}, '%') or t1.store_code like concat('%', #{store.search}, '%'))
and (t1.store_name like concat('%', #{store.search}, '%') or t1.store_code like concat('%', #{store.search}, '%')
or t2.provinces like concat('%', #{store.search}, '%') )
</if>
<if test="store.storeCode != null and store.storeCode !=''">
and t1.store_code =#{store.storeCode}
......
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