Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-module-job
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-module-job
Commits
b1fbef92
提交
b1fbef92
authored
11月 28, 2025
作者:
000516
浏览文件
操作
浏览文件
下载
差异文件
获取百度地理编码;更新百度ak
上级
25f1e924
f0adfe34
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
7 行删除
+12
-7
LsDisStoreDaoImpl.java
src/main/java/com/sfa/job/domain/ls/LsDisStoreDaoImpl.java
+9
-4
LsDisStoreMapper.xml
src/main/resources/mapper/job/LsDisStoreMapper.xml
+3
-3
没有找到文件。
src/main/java/com/sfa/job/domain/ls/LsDisStoreDaoImpl.java
浏览文件 @
b1fbef92
...
...
@@ -33,10 +33,12 @@ public class LsDisStoreDaoImpl {
updateanhui
(
lsDisStores
,
ldsId
);
}
// OI4hMr7tEUoDBhSYxcrOGslnnBfZmD2b
// 1ZKO0CGs6nm9HuZWR6ucRiu4p9kM8f3i
private
void
updateanhui
(
List
<
LsDisStore
>
lsDisStores
,
Long
ldsId
){
for
(
LsDisStore
lsDisStore
:
lsDisStores
)
{
String
outlet
=
lsDisStore
.
getOutletName
()+
lsDisStore
.
getOutletAddress
();
String
s
=
HttpUtil
.
get
(
"https://api.map.baidu.com/geocoding/v3/?address="
+
outlet
+
"&output=json&ak=
1ZKO0CGs6nm9HuZWR6ucRiu4p9kM8f3i
&city="
+
lsDisStore
.
getReCity
());
String
s
=
HttpUtil
.
get
(
"https://api.map.baidu.com/geocoding/v3/?address="
+
outlet
+
"&output=json&ak=
OI4hMr7tEUoDBhSYxcrOGslnnBfZmD2b
&city="
+
lsDisStore
.
getReCity
());
JSONObject
bd
=
JSONObject
.
parseObject
(
s
);
Integer
status
=
bd
.
getInteger
(
"status"
);
if
(
status
.
intValue
()
>=
300
&&
status
.
intValue
()
<=
399
){
...
...
@@ -70,11 +72,12 @@ public class LsDisStoreDaoImpl {
updateGuangzhou
(
lsDisStores
,
ldsId
);
}
// sJFYkogPGt8kI3xkkSPwQQ9T61b4GVQV
// 8ptRbXOnQNX2TTqGVVYv5AUw3vJZ77gZ
private
void
updateGuangzhou
(
List
<
LsDisStore
>
lsDisStores
,
Long
ldsId
){
for
(
LsDisStore
lsDisStore
:
lsDisStores
)
{
String
outlet
=
lsDisStore
.
getOutletName
()+
lsDisStore
.
getOutletAddress
();
String
s
=
HttpUtil
.
get
(
"https://api.map.baidu.com/geocoding/v3/?address="
+
outlet
+
"&output=json&ak=
8ptRbXOnQNX2TTqGVVYv5AUw3vJZ77gZ
&city="
+
lsDisStore
.
getReCity
());
String
s
=
HttpUtil
.
get
(
"https://api.map.baidu.com/geocoding/v3/?address="
+
outlet
+
"&output=json&ak=
sJFYkogPGt8kI3xkkSPwQQ9T61b4GVQV
&city="
+
lsDisStore
.
getReCity
());
JSONObject
bd
=
JSONObject
.
parseObject
(
s
);
Integer
status
=
bd
.
getInteger
(
"status"
);
if
(
status
.
intValue
()
>=
300
&&
status
.
intValue
()
<=
399
){
...
...
@@ -108,10 +111,12 @@ public class LsDisStoreDaoImpl {
updateanhuisp
(
lsDisStores
,
ldsId
);
}
// StY6BS8Bw50TrclA4Zd52MfEjsL1zUXI
// anjhOkUMuRyTb3DZO6dMGRUCY2l0vAql
private
void
updateanhuisp
(
List
<
LsDisStore
>
lsDisStores
,
Long
ldsId
){
for
(
LsDisStore
lsDisStore
:
lsDisStores
)
{
String
outlet
=
lsDisStore
.
getOutletName
()+
lsDisStore
.
getOutletAddress
();
String
s
=
HttpUtil
.
get
(
"https://api.map.baidu.com/geocoding/v3/?address="
+
outlet
+
"&output=json&ak=
StY6BS8Bw50TrclA4Zd52MfEjsL1zUXI
&city="
+
lsDisStore
.
getReCity
());
String
s
=
HttpUtil
.
get
(
"https://api.map.baidu.com/geocoding/v3/?address="
+
outlet
+
"&output=json&ak=
anjhOkUMuRyTb3DZO6dMGRUCY2l0vAql
&city="
+
lsDisStore
.
getReCity
());
JSONObject
bd
=
JSONObject
.
parseObject
(
s
);
Integer
status
=
bd
.
getInteger
(
"status"
);
if
(
status
.
intValue
()
>=
300
&&
status
.
intValue
()
<=
399
){
...
...
src/main/resources/mapper/job/LsDisStoreMapper.xml
浏览文件 @
b1fbef92
...
...
@@ -32,7 +32,7 @@
<!-- 修改 limit 数量-->
<select
id=
"selectBaseO"
resultMap=
"LsDisStoreBase"
>
select lds_if,re_province,re_city,outlet_address,outlet_name
from ls_dis_store where lds_if
>
#{lastId} and lds_if
<
= 500000 and re_area is null and lng is null
and outlet_address is not null
limit 1000;
from ls_dis_store where lds_if
>
#{lastId} and lds_if
<
= 500000 and re_area is null and lng is null limit 1000;
</select>
...
...
@@ -45,7 +45,7 @@
<select
id=
"selectBaseT"
resultMap=
"LsDisStoreBase"
>
select lds_if,re_province,re_city,outlet_address,outlet_name
from ls_dis_store where lds_if
>
#{lastId} and lds_if
<
= 1000000 and re_area is null and lng is null
and outlet_address is not null
limit 1000;
from ls_dis_store where lds_if
>
#{lastId} and lds_if
<
= 1000000 and re_area is null and lng is null limit 1000;
</select>
...
...
@@ -59,7 +59,7 @@
<select
id=
"selectBaseS"
resultMap=
"LsDisStoreBase"
>
select lds_if,re_province,re_city,outlet_address,outlet_name
from ls_dis_store where lds_if
>
#{lastId} and lds_if
<
= 1537130 and re_area is null and lng is null
and outlet_address is not null
limit 1000;
from ls_dis_store where lds_if
>
#{lastId} and lds_if
<
= 1537130 and re_area is null and lng is null limit 1000;
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论