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
799df54b
Commit
799df54b
authored
Dec 15, 2020
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更航班动态统计逻辑
parent
2e50d72f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
DynamicFlightService.java
src/main/java/com/foc/service/DynamicFlightService.java
+1
-1
StatisticalMapper.xml
src/main/resources/mapper/StatisticalMapper.xml
+2
-0
No files found.
src/main/java/com/foc/service/DynamicFlightService.java
View file @
799df54b
...
...
@@ -56,7 +56,7 @@ public class DynamicFlightService {
//总机型集合
List
<
String
>
verifyAcTypes
=
Arrays
.
asList
(
verifyAcType
.
split
(
","
));
StatisticalDao
dao
=
session
.
getMapper
(
StatisticalDao
.
class
);
//获取航班动态表中所有航班性质为J,状态
为ATA
,机型为319/A320,321,320neo,330的航线的最后一班时间
//获取航班动态表中所有航班性质为J,状态
不为CNL
,机型为319/A320,321,320neo,330的航线的最后一班时间
String
date
=
DateUtils
.
getLastDate
();
List
<
StatisticalEntity
>
list
=
dao
.
getFlightList
(
date
);
List
<
StatisticalEntity
>
slist
=
new
ArrayList
<>();
...
...
src/main/resources/mapper/StatisticalMapper.xml
View file @
799df54b
...
...
@@ -14,6 +14,7 @@
LEFT JOIN foc_airports fa ON d.arr_stn = fa.airport_iata
WHERE
d.`stc` = 'J'
AND d.`status`!='CNL'
AND d.`atd_chn`
<
= #{date}
GROUP BY
d.dep_stn,
...
...
@@ -26,6 +27,7 @@
from foc_flight_dynamics
where dep_stn=#{entity.depIata} and arr_stn=#{entity.arrIata}
AND `stc` = 'J'
AND `status`!='CNL'
AND `atd_chn`
<
= #{date}
and ac_type in
<foreach
item=
"acType"
collection=
"acTypes"
separator=
","
open=
"("
close=
")"
index=
""
>
...
...
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