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
ba01134b
Commit
ba01134b
authored
Jul 21, 2020
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改论证条件
parent
fd27ca72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
22 deletions
+57
-22
AirCarrierDao.xml
resources/mapper/modules/flight/AirCarrierDao.xml
+32
-17
PropertiesUtils.java
src/com/ejweb/core/util/PropertiesUtils.java
+16
-5
AirCarrierFlightListEntity.java
src/com/ejweb/modules/flight/entity/AirCarrierFlightListEntity.java
+9
-0
No files found.
resources/mapper/modules/flight/AirCarrierDao.xml
View file @
ba01134b
<?xml version="1.0" encoding="UTF-8" ?>
<?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" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.ejweb.modules.flight.dao.AirCarrierDao"
>
<mapper
namespace=
"com.ejweb.modules.flight.dao.AirCarrierDao"
>
<!-- 获取当天的飞机号列表 -->
<!-- 获取当天的飞机号列表 -->
<select
id=
"findAirCarrierList"
resultType=
"com.ejweb.modules.flight.entity.AirCarrierListEntity"
>
<select
id=
"findAirCarrierList"
resultType=
"com.ejweb.modules.flight.entity.AirCarrierListEntity"
>
<!--
<!--
...
@@ -13,25 +13,25 @@
...
@@ -13,25 +13,25 @@
)
)
-->
-->
SELECT s.id,
SELECT s.id,
s.satellite_phone,
s.satellite_phone,
a.ac_long_no AS
satellite_name
a.ac_long_no AS
satellite_name
FROM (
FROM (
SELECT DISTINCT d.ac_long_no
SELECT DISTINCT d.ac_long_no
FROM foc_flight_dynamics d
FROM foc_flight_dynamics d
WHERE d.ac_long_no != ''
WHERE d.ac_long_no != ''
<if
test=
"queryDate != null and queryDate != ''"
>
<if
test=
"queryDate != null and queryDate != ''"
>
AND d.datop_chn=#{queryDate}
AND d.datop_chn=#{queryDate}
</if>
</if>
ORDER BY d.etd_chn DESC
ORDER BY d.etd_chn DESC
) a
) a
LEFT JOIN foc_satellite_phone s
LEFT JOIN foc_satellite_phone s
ON a.ac_long_no = s.satellite_name
ON a.ac_long_no = s.satellite_name
AND s.status=1
AND s.status=1
<if
test=
"airCarrierNo != null and airCarrierNo != ''"
>
<if
test=
"airCarrierNo != null and airCarrierNo != ''"
>
WHERE a.ac_long_no LIKE
WHERE a.ac_long_no LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{airCarrierNo}||'%')
</if>
<if
test=
"dbName == 'oracle'"
>
'%'||#{airCarrierNo}||'%')
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{airCarrierNo}+'%')
</if>
<if
test=
"dbName == 'mssql'"
>
'%'+#{airCarrierNo}+'%')
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{airCarrierNo}, '%')
</if>
<if
test=
"dbName == 'mysql'"
>
CONCAT('%', #{airCarrierNo}, '%')
</if>
</if>
</if>
</select>
</select>
<!-- 查询航班列表 -->
<!-- 查询航班列表 -->
...
@@ -59,7 +59,22 @@
...
@@ -59,7 +59,22 @@
d.status,
d.status,
d.flight_no,
d.flight_no,
d.ac_long_no,
d.ac_long_no,
d.datop_chn AS flightDate
d.datop_chn AS flightDate,
case d.stc when 'A' then '货运包机'
when 'C' then '旅客包机'
when 'D' then '补班'
when 'E' then '专机'
when 'F' then '货机'
when 'G' then '加班'
when 'H' then '货物加班'
when 'J' then '正班'
when 'K' then '训练/本场训练'
when 'L' then '急救'
when 'O' then '公务飞行'
when 'P' then '调机'
when 'T' then '试飞'
when 'X' then '技术经停'
else '其他' end `stc`
FROM foc_flight_dynamics d
FROM foc_flight_dynamics d
INNER JOIN foc_airports dp
INNER JOIN foc_airports dp
ON d.dep_stn=dp.airport_iata
ON d.dep_stn=dp.airport_iata
...
...
src/com/ejweb/core/util/PropertiesUtils.java
View file @
ba01134b
...
@@ -8,20 +8,31 @@ import java.util.Properties;
...
@@ -8,20 +8,31 @@ import java.util.Properties;
* @author zangtao
* @author zangtao
*/
*/
public
class
PropertiesUtils
{
public
class
PropertiesUtils
{
private
static
Properties
properties
;
private
static
Properties
properties
;
/**
/**
* 获取配置文件中配置信息
* 获取配置文件中配置信息
*/
*/
static
{
}
static
{
}
public
static
Properties
getProperties
(){
public
static
Properties
getProperties
()
{
if
(
properties
==
null
){
if
(
properties
==
null
)
{
properties
=
new
Properties
();
properties
=
new
Properties
();
InputStreamReader
in
=
null
;
try
{
try
{
properties
.
load
(
new
InputStreamReader
(
PropertiesUtils
.
class
.
getClassLoader
().
getResourceAsStream
(
"redis.properties"
),
"UTF-8"
));
in
=
new
InputStreamReader
(
PropertiesUtils
.
class
.
getClassLoader
().
getResourceAsStream
(
"redis.properties"
),
"UTF-8"
);
properties
.
load
(
in
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
if
(
in
!=
null
)
{
try
{
in
.
close
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
}
return
properties
;
return
properties
;
...
...
src/com/ejweb/modules/flight/entity/AirCarrierFlightListEntity.java
View file @
ba01134b
...
@@ -87,6 +87,7 @@ public class AirCarrierFlightListEntity extends BaseEntity {
...
@@ -87,6 +87,7 @@ public class AirCarrierFlightListEntity extends BaseEntity {
@JSONField
(
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JSONField
(
format
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
latestModifyTime
;
private
Date
latestModifyTime
;
private
String
stc
;
public
Date
getEta
()
{
public
Date
getEta
()
{
return
eta
;
return
eta
;
}
}
...
@@ -242,4 +243,12 @@ public class AirCarrierFlightListEntity extends BaseEntity {
...
@@ -242,4 +243,12 @@ public class AirCarrierFlightListEntity extends BaseEntity {
public
void
setLatestModifyTime
(
Date
latestModifyTime
)
{
public
void
setLatestModifyTime
(
Date
latestModifyTime
)
{
this
.
latestModifyTime
=
latestModifyTime
;
this
.
latestModifyTime
=
latestModifyTime
;
}
}
public
String
getStc
()
{
return
stc
;
}
public
void
setStc
(
String
stc
)
{
this
.
stc
=
stc
;
}
}
}
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