提交 146b3fe2 authored 作者: 000516's avatar 000516

添加地图key

上级 8d95fffc
...@@ -149,10 +149,11 @@ public class LsDisStoreDaoImpl { ...@@ -149,10 +149,11 @@ public class LsDisStoreDaoImpl {
nUanhuisp(lsDisStores,ldsId); nUanhuisp(lsDisStores,ldsId);
} }
// 洪虎:Ltqlx9VbzkCs1BiVvErlzkjDBc1htKUb
private void nUanhuisp(List<LsDisStore> lsDisStores,Long ldsId){ private void nUanhuisp(List<LsDisStore> lsDisStores,Long ldsId){
for (LsDisStore lsDisStore : lsDisStores) { for (LsDisStore lsDisStore : lsDisStores) {
String lng = lsDisStore.getLng(); String lng = lsDisStore.getLng();
String s = HttpUtil.get("https://api.map.baidu.com/reverse_geocoding/v3/?location="+lng+"&output=json&ak=anjhOkUMuRyTb3DZO6dMGRUCY2l0vAql"); String s = HttpUtil.get("https://api.map.baidu.com/reverse_geocoding/v3/?location="+lng+"&output=json&ak=Ltqlx9VbzkCs1BiVvErlzkjDBc1htKUb");
JSONObject bd = JSONObject.parseObject(s); JSONObject bd = JSONObject.parseObject(s);
Integer status = bd.getInteger("status"); Integer status = bd.getInteger("status");
if (status.intValue() >= 300 && status.intValue() <= 399){ if (status.intValue() >= 300 && status.intValue() <= 399){
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<select id="selectBaseLO" resultMap="LsDisStoreBase"> <select id="selectBaseLO" resultMap="LsDisStoreBase">
select lds_if,lng select lds_if,lng
from ls_dis_store where lng is not null and re_area is null and lds_if &gt; #{lastId} and lds_if &lt;= 250000 limit 1000; from ls_dis_store where lng is not null and re_area is null limit 1000;
</select> </select>
<select id="selectBaseLT" resultMap="LsDisStoreBase"> <select id="selectBaseLT" resultMap="LsDisStoreBase">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论