Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
task3.0
Commits
d49b0900
Commit
d49b0900
authored
Jan 27, 2021
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
1d939ba6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
DspReleaseInfoService.java
src/main/java/com/foc/service/DspReleaseInfoService.java
+8
-3
No files found.
src/main/java/com/foc/service/DspReleaseInfoService.java
View file @
d49b0900
...
...
@@ -66,8 +66,9 @@ public class DspReleaseInfoService {
StatisticalDao
dao
=
session
.
getMapper
(
StatisticalDao
.
class
);
for
(
LocalDate
date
:
dates
)
{
List
<
String
>
flightNoList
=
dao
.
getFlightNoList
(
date
);
log
.
info
(
"开始"
+
date
+
"时间统计
"
);
System
.
out
.
println
(
"开始"
+
date
+
"前一天航班号统计,共获取到"
+
flightNoList
.
size
()
+
"条数据
"
);
for
(
String
s
:
flightNoList
)
{
System
.
out
.
println
(
"航班号:"
+
s
);
//生成requestCode
Map
<
String
,
String
>
map
=
buildGatewayRequestString
(
s
,
key
,
userAccount
,
password
,
date
);
//掉接口
...
...
@@ -87,8 +88,8 @@ public class DspReleaseInfoService {
ApiRequest
apiRequest
=
new
ApiRequest
();
apiRequest
.
getOptions
().
put
(
"flightNos"
,
flightNo
);
apiRequest
.
getOptions
().
put
(
"stdTimeStart"
,
date
.
format
(
DateTimeFormatter
.
ISO_LOCAL_DATE
)
+
" 00:00:00"
);
apiRequest
.
getOptions
().
put
(
"stdTimeEnd"
,
date
.
plusDays
(
1
).
format
(
DateTimeFormatter
.
ISO_LOCAL_DATE
)
+
" 00:00:00"
);
apiRequest
.
getOptions
().
put
(
"stdTimeStart"
,
date
.
plusDays
(-
1
).
format
(
DateTimeFormatter
.
ISO_LOCAL_DATE
)
+
" 00:00:00"
);
apiRequest
.
getOptions
().
put
(
"stdTimeEnd"
,
date
.
format
(
DateTimeFormatter
.
ISO_LOCAL_DATE
)
+
" 00:00:00"
);
//分页参数
PageParam
pageParam
=
new
PageParam
();
//从第一页开始
...
...
@@ -173,7 +174,11 @@ public class DspReleaseInfoService {
//调添加接口
dao
.
insertDspReleaseInfo
(
dspReleaseInfoList
);
}
}
else
{
System
.
out
.
println
(
"返回值不为0"
);
}
}
else
{
System
.
out
.
println
(
"返回值为空"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment