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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
7 deletions
+42
-7
AirCarrierDao.xml
resources/mapper/modules/flight/AirCarrierDao.xml
+17
-2
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" ?>
<!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"
>
<!--
...
...
@@ -59,7 +59,22 @@
d.status,
d.flight_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
INNER JOIN foc_airports dp
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;
* @author zangtao
*/
public
class
PropertiesUtils
{
private
static
Properties
properties
;
private
static
Properties
properties
;
/**
* 获取配置文件中配置信息
*/
static
{
}
static
{
}
public
static
Properties
getProperties
(){
if
(
properties
==
null
){
public
static
Properties
getProperties
()
{
if
(
properties
==
null
)
{
properties
=
new
Properties
();
InputStreamReader
in
=
null
;
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
)
{
e
.
printStackTrace
();
}
finally
{
if
(
in
!=
null
)
{
try
{
in
.
close
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
return
properties
;
...
...
src/com/ejweb/modules/flight/entity/AirCarrierFlightListEntity.java
View file @
ba01134b
...
...
@@ -87,6 +87,7 @@ public class AirCarrierFlightListEntity extends BaseEntity {
@JSONField
(
format
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
latestModifyTime
;
private
String
stc
;
public
Date
getEta
()
{
return
eta
;
}
...
...
@@ -242,4 +243,12 @@ public class AirCarrierFlightListEntity extends BaseEntity {
public
void
setLatestModifyTime
(
Date
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