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
f0adfe34
提交
f0adfe34
authored
11月 28, 2025
作者:
000516
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新百度ak
上级
f9639aca
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
4 行删除
+9
-4
LsDisStoreDaoImpl.java
src/main/java/com/sfa/job/domain/ls/LsDisStoreDaoImpl.java
+9
-4
没有找到文件。
src/main/java/com/sfa/job/domain/ls/LsDisStoreDaoImpl.java
浏览文件 @
f0adfe34
...
...
@@ -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
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论