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
63f75b58
Commit
63f75b58
authored
Dec 14, 2020
by
java-温文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
航线论证需求变更(传入开始和结束时间)
parent
f36d1c62
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
17 deletions
+83
-17
StatisticalDao.xml
resources/mapper/modules/airport/StatisticalDao.xml
+24
-1
StatisticalListBean.java
src/com/ejweb/modules/airport/bean/StatisticalListBean.java
+4
-4
StatisticalDao.java
src/com/ejweb/modules/airport/dao/StatisticalDao.java
+12
-6
AirportInfoEntity.java
src/com/ejweb/modules/airport/entity/AirportInfoEntity.java
+30
-0
StatisticalListEntity.java
src/com/ejweb/modules/airport/entity/StatisticalListEntity.java
+0
-2
StatisticalService.java
src/com/ejweb/modules/airport/service/StatisticalService.java
+13
-4
No files found.
resources/mapper/modules/airport/StatisticalDao.xml
View file @
63f75b58
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ejweb.modules.airport.dao.StatisticalDao"
>
<select
id=
"getStatisticalList"
resultType=
"com.ejweb.modules.airport.entity.StatisticalEntity"
>
<select
id=
"getStatisticalList"
resultType=
"com.ejweb.modules.airport.entity.StatisticalEntity"
>
SELECT a.verif_no as verifNo,
a.id as verifId,
CASE WHEN a.verif_type='01' OR a.verif_type='02'
...
...
@@ -218,7 +218,29 @@
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{arrIata}, '%')
</if>
)
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime !=null and endTime != ''"
>
and (
<foreach
item=
"list"
collection=
"item"
index=
"index"
separator=
"or"
open=
"("
close=
")"
>
favt.dep_iata = #{item.dspStn}
and favt.arr_iata = #{item.arrStn}
</foreach>
)
</if>
ORDER BY favt.last_airline_time DESC
</select>
<select
id=
"getAirporStnList"
resultType=
"com.ejweb.modules.airport.entity.AirportInfoEntity"
>
SELECT
ffd.dep_stn,
ffd.arr_stn
FROM
foc_flight_dynamics ffd
WHERE
ffd.std_chn BETWEEN #{beginTime}
AND #{endTime}
GROUP BY
ffd.dep_stn,
ffd.arr_stn;
</select>
</mapper>
\ No newline at end of file
src/com/ejweb/modules/airport/bean/StatisticalListBean.java
View file @
63f75b58
...
...
@@ -19,8 +19,8 @@ public class StatisticalListBean extends GenericBean {
private
int
pageSize
=
GConstants
.
PAGE_SIZE
;
//每页条数
private
String
benchmarkingTime
;
private
Integer
airlineStatus
;
/*
private String beginTime;
private String endTime;
*/
private
String
beginTime
;
private
String
endTime
;
public
String
getDepIata
()
{
return
depIata
;
...
...
@@ -78,7 +78,7 @@ public class StatisticalListBean extends GenericBean {
this
.
airlineStatus
=
airlineStatus
;
}
/*
public String getBeginTime() {
public
String
getBeginTime
()
{
return
beginTime
;
}
...
...
@@ -92,5 +92,5 @@ public class StatisticalListBean extends GenericBean {
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
*/
}
}
src/com/ejweb/modules/airport/dao/StatisticalDao.java
View file @
63f75b58
...
...
@@ -6,22 +6,28 @@ package com.ejweb.modules.airport.dao;
import
com.ejweb.core.base.BaseDao
;
import
com.ejweb.modules.airport.bean.StatisticalBean
;
import
com.ejweb.modules.airport.bean.StatisticalListBean
;
import
com.ejweb.modules.airport.entity.AirportInfoEntity
;
import
com.ejweb.modules.airport.entity.StatisticalEntity
;
import
com.ejweb.modules.airport.entity.StatisticalListEntity
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
*
* @team suzhou
* @author huhy
* @version 1.0
* @time 2016年9月8日
* @team suzhou
* @time 2016年9月8日
*/
public
interface
StatisticalDao
extends
BaseDao
{
public
interface
StatisticalDao
extends
BaseDao
{
List
<
StatisticalEntity
>
getStatisticalList
(
StatisticalBean
bean
);
List
<
StatisticalEntity
>
getStatisticalArrIataList
(
StatisticalBean
bean
);
Integer
getDay
(
StatisticalEntity
entity
);
List
<
StatisticalListEntity
>
getList
(
StatisticalListBean
statisticalListBean
);
List
<
StatisticalListEntity
>
getList
(
StatisticalListBean
statisticalListBean
,
List
<
AirportInfoEntity
>
airportInfoEntities
);
List
<
AirportInfoEntity
>
getAirporStnList
(
@Param
(
"beginTime"
)
String
beginTime
,
@Param
(
"endTime"
)
String
endTime
);
}
src/com/ejweb/modules/airport/entity/AirportInfoEntity.java
0 → 100644
View file @
63f75b58
package
com
.
ejweb
.
modules
.
airport
.
entity
;
import
com.ejweb.core.base.BaseEntity
;
public
class
AirportInfoEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
-
4211749532324022040L
;
private
String
arrStn
;
private
String
dspStn
;
public
String
getArrStn
()
{
return
arrStn
;
}
public
void
setArrStn
(
String
arrStn
)
{
this
.
arrStn
=
arrStn
;
}
public
String
getDspStn
()
{
return
dspStn
;
}
public
void
setDspStn
(
String
dspStn
)
{
this
.
dspStn
=
dspStn
;
}
}
src/com/ejweb/modules/airport/entity/StatisticalListEntity.java
View file @
63f75b58
...
...
@@ -3,8 +3,6 @@ package com.ejweb.modules.airport.entity;
import
com.ejweb.core.base.BaseEntity
;
import
com.ejweb.core.utils.excel.annotation.ExcelField
;
import
java.util.List
;
public
class
StatisticalListEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
-
4211749532324022040L
;
...
...
src/com/ejweb/modules/airport/service/StatisticalService.java
View file @
63f75b58
...
...
@@ -8,7 +8,7 @@ import com.ejweb.core.base.PageEntity;
import
com.ejweb.modules.airport.bean.StatisticalBean
;
import
com.ejweb.modules.airport.bean.StatisticalListBean
;
import
com.ejweb.modules.airport.dao.StatisticalDao
;
import
com.ejweb.modules.airport.entity.Air
Plane
Entity
;
import
com.ejweb.modules.airport.entity.Air
portInfo
Entity
;
import
com.ejweb.modules.airport.entity.StatisticalEntity
;
import
com.ejweb.modules.airport.entity.StatisticalListEntity
;
import
com.ejweb.modules.verify.bean.AirlineVerifiedAddBean
;
...
...
@@ -23,7 +23,10 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Objects
;
/**
* @author huhy
...
...
@@ -142,9 +145,15 @@ public class StatisticalService extends BaseService<StatisticalDao> {
}
public
PageEntity
<
StatisticalListEntity
>
getList
(
StatisticalListBean
statisticalListBean
){
public
PageEntity
<
StatisticalListEntity
>
getList
(
StatisticalListBean
statisticalListBean
)
{
//通过开始时间和结束时间查询航班
List
<
AirportInfoEntity
>
airportInfoEntities
=
null
;
if
(
statisticalListBean
.
getBeginTime
().
equals
(
' '
)
&&
statisticalListBean
.
getEndTime
().
equals
(
" "
))
{
airportInfoEntities
=
statisticalDao
.
getAirporStnList
(
statisticalListBean
.
getBeginTime
(),
statisticalListBean
.
getEndTime
());
}
List
<
StatisticalListEntity
>
lists
=
null
;
lists
=
statisticalDao
.
getList
(
statisticalListBean
);
lists
=
statisticalDao
.
getList
(
statisticalListBean
,
airportInfoEntities
);
if
(
Objects
.
nonNull
(
statisticalListBean
.
getAirlineStatus
()))
{
//使用迭代器进行筛选
Iterator
<
StatisticalListEntity
>
iter
=
lists
.
iterator
();
...
...
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