Commit 799df54b by java-李谡

变更航班动态统计逻辑

parent 2e50d72f
...@@ -56,7 +56,7 @@ public class DynamicFlightService { ...@@ -56,7 +56,7 @@ public class DynamicFlightService {
//总机型集合 //总机型集合
List<String> verifyAcTypes = Arrays.asList(verifyAcType.split(",")); List<String> verifyAcTypes = Arrays.asList(verifyAcType.split(","));
StatisticalDao dao = session.getMapper(StatisticalDao.class); StatisticalDao dao = session.getMapper(StatisticalDao.class);
//获取航班动态表中所有航班性质为J,状态为ATA,机型为319/A320,321,320neo,330的航线的最后一班时间 //获取航班动态表中所有航班性质为J,状态不为CNL,机型为319/A320,321,320neo,330的航线的最后一班时间
String date = DateUtils.getLastDate(); String date = DateUtils.getLastDate();
List<StatisticalEntity> list = dao.getFlightList(date); List<StatisticalEntity> list = dao.getFlightList(date);
List<StatisticalEntity> slist = new ArrayList<>(); List<StatisticalEntity> slist = new ArrayList<>();
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
LEFT JOIN foc_airports fa ON d.arr_stn = fa.airport_iata LEFT JOIN foc_airports fa ON d.arr_stn = fa.airport_iata
WHERE WHERE
d.`stc` = 'J' d.`stc` = 'J'
AND d.`status`!='CNL'
AND d.`atd_chn` &lt;= #{date} AND d.`atd_chn` &lt;= #{date}
GROUP BY GROUP BY
d.dep_stn, d.dep_stn,
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
from foc_flight_dynamics from foc_flight_dynamics
where dep_stn=#{entity.depIata} and arr_stn=#{entity.arrIata} where dep_stn=#{entity.depIata} and arr_stn=#{entity.arrIata}
AND `stc` = 'J' AND `stc` = 'J'
AND `status`!='CNL'
AND `atd_chn` &lt;= #{date} AND `atd_chn` &lt;= #{date}
and ac_type in and ac_type in
<foreach item="acType" collection="acTypes" separator="," open="(" close=")" index=""> <foreach item="acType" collection="acTypes" separator="," open="(" close=")" index="">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment