Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
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
首航-临时账号
api
Commits
77317cca
Commit
77317cca
authored
Dec 15, 2020
by
java-温文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
航线论证需求变更(传入开始和结束时间)
parent
63f75b58
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
36 deletions
+37
-36
StatisticalDao.xml
resources/mapper/modules/airport/StatisticalDao.xml
+30
-29
StatisticalDao.java
src/com/ejweb/modules/airport/dao/StatisticalDao.java
+1
-1
AirportInfoEntity.java
src/com/ejweb/modules/airport/entity/AirportInfoEntity.java
+5
-5
StatisticalService.java
src/com/ejweb/modules/airport/service/StatisticalService.java
+1
-1
No files found.
resources/mapper/modules/airport/StatisticalDao.xml
View file @
77317cca
...
...
@@ -179,9 +179,9 @@
DATE_FORMAT(favt.last_airline_time,'%Y/%m/%d') AS lastAirlineTime,
CASE
WHEN
DATE_SUB( #{
benchmarkingTime}, INTERVAL 180 DAY )
<![CDATA[<=]]>
favt.last_airline_time
DATE_SUB( #{bean.
benchmarkingTime}, INTERVAL 180 DAY )
<![CDATA[<=]]>
favt.last_airline_time
AND
favt.last_airline_time
<![CDATA[<=]]>
DATE_SUB( #{benchmarkingTime}, INTERVAL - 180 DAY )
favt.last_airline_time
<![CDATA[<=]]>
DATE_SUB( #{be
an.be
nchmarkingTime}, INTERVAL - 180 DAY )
THEN
1
ELSE
...
...
@@ -192,39 +192,39 @@
FROM
foc_airline_sta favt
WHERE
favt.del_flag = #{DEL_FLAG_NORMAL}
favt.del_flag = #{
bean.
DEL_FLAG_NORMAL}
<!--当出发地不为空,目的地为空 -->
<if
test=
"(
depIata != null and
depIata != '') "
>
<if
test=
"(
bean.depIata != null and bean.
depIata != '') "
>
AND ( favt.dep_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{depIata}, '%')
</if>
<if
test=
"dbName == 'oracle'"
>
'%'||#{
bean.
depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{
bean.
depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{
bean.
depIata}, '%')
</if>
or favt.arr_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{depIata}, '%')
</if>
<if
test=
"dbName == 'oracle'"
>
'%'||#{
bean.
depIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{
bean.
depIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{
bean.
depIata}, '%')
</if>
)
</if>
<!--当出发地为空,目的地不为空 -->
<if
test=
" (
arrIata != null and
arrIata != '')"
>
<if
test=
" (
bean.arrIata != null and bean.
arrIata != '')"
>
and ( favt.dep_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
<if
test=
"dbName == 'oracle'"
>
'%'||#{
bean.
arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{
bean.
arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{
bean.
arrIata}, '%')
</if>
or favt.arr_iata LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
<if
test=
"dbName == 'oracle'"
>
'%'||#{
bean.
arrIata}||'%'
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{
bean.
arrIata}+'%'
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{
bean.
arrIata}, '%')
</if>
)
</if>
<if
test=
"be
ginTime != null and beginTime != '' and endTime !=null and
endTime != ''"
>
and
(
<foreach
item=
"list"
collection
=
"item"
index=
"index"
separator=
"or"
open=
"("
close=
")"
>
favt.dep_iata = #{item.ds
pStn}
and favt.arr_iata = #{item.arrStn}
<if
test=
"be
an.beginTime != null and bean.beginTime != '' and bean.endTime !=null and bean.
endTime != ''"
>
and
<foreach
collection=
"list"
item
=
"item"
index=
"index"
separator=
"or"
open=
"("
close=
")"
>
(favt.dep_iata = #{item.de
pStn}
and favt.arr_iata = #{item.arrStn}
)
</foreach>
)
</if>
ORDER BY favt.last_airline_time DESC
...
...
@@ -232,15 +232,15 @@
<select
id=
"getAirporStnList"
resultType=
"com.ejweb.modules.airport.entity.AirportInfoEntity"
>
SELECT
ffd.
dep_stn,
ffd.
arr_stn
dep_stn,
arr_stn
FROM
foc_flight_dynamics
ffd
foc_flight_dynamics
WHERE
ffd.
std_chn BETWEEN #{beginTime}
std_chn BETWEEN #{beginTime}
AND #{endTime}
GROUP BY
ffd.
dep_stn,
ffd.
arr_stn;
dep_stn,
arr_stn;
</select>
</mapper>
\ No newline at end of file
src/com/ejweb/modules/airport/dao/StatisticalDao.java
View file @
77317cca
...
...
@@ -27,7 +27,7 @@ public interface StatisticalDao extends BaseDao {
Integer
getDay
(
StatisticalEntity
entity
);
List
<
StatisticalListEntity
>
getList
(
StatisticalListBean
statisticalListBean
,
List
<
AirportInfoEntity
>
airportInfoEntities
);
List
<
StatisticalListEntity
>
getList
(
@Param
(
"bean"
)
StatisticalListBean
statisticalListBean
,
@Param
(
"list"
)
List
<
AirportInfoEntity
>
airportInfoEntities
);
List
<
AirportInfoEntity
>
getAirporStnList
(
@Param
(
"beginTime"
)
String
beginTime
,
@Param
(
"endTime"
)
String
endTime
);
}
src/com/ejweb/modules/airport/entity/AirportInfoEntity.java
View file @
77317cca
...
...
@@ -9,7 +9,7 @@ public class AirportInfoEntity extends BaseEntity {
private
String
arrStn
;
private
String
d
s
pStn
;
private
String
d
e
pStn
;
public
String
getArrStn
()
{
...
...
@@ -20,11 +20,11 @@ public class AirportInfoEntity extends BaseEntity {
this
.
arrStn
=
arrStn
;
}
public
String
getD
s
pStn
()
{
return
d
s
pStn
;
public
String
getD
e
pStn
()
{
return
d
e
pStn
;
}
public
void
setD
spStn
(
String
ds
pStn
)
{
this
.
d
spStn
=
ds
pStn
;
public
void
setD
epStn
(
String
de
pStn
)
{
this
.
d
epStn
=
de
pStn
;
}
}
src/com/ejweb/modules/airport/service/StatisticalService.java
View file @
77317cca
...
...
@@ -148,7 +148,7 @@ public class StatisticalService extends BaseService<StatisticalDao> {
public
PageEntity
<
StatisticalListEntity
>
getList
(
StatisticalListBean
statisticalListBean
)
{
//通过开始时间和结束时间查询航班
List
<
AirportInfoEntity
>
airportInfoEntities
=
null
;
if
(
statisticalListBean
.
getBeginTime
().
equals
(
' '
)
&&
statisticalListBean
.
getEndTime
().
equals
(
" "
))
{
if
(
!(
statisticalListBean
.
getBeginTime
().
equals
(
' '
)
&&
statisticalListBean
.
getEndTime
().
equals
(
" "
)
))
{
airportInfoEntities
=
statisticalDao
.
getAirporStnList
(
statisticalListBean
.
getBeginTime
(),
statisticalListBean
.
getEndTime
());
}
...
...
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