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
83db87d0
Commit
83db87d0
authored
May 07, 2019
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改飞机统计
parent
0d005762
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
28 deletions
+26
-28
.gitignore
.gitignore
+7
-0
ejweb.properties
resources/ejweb.properties
+1
-1
log4j.properties
resources/log4j.properties
+3
-2
FlightDynamicsDao.xml
resources/mapper/modules/statistics/FlightDynamicsDao.xml
+5
-5
ErrorCode.class
src/com/ejweb/core/conf/ErrorCode.class
+0
-0
SecurityPropertyPlaceholderConfigurer.java
src/com/ejweb/core/conf/SecurityPropertyPlaceholderConfigurer.java
+0
-0
FlightDynamicsDao.java
src/com/ejweb/modules/statistics/dao/FlightDynamicsDao.java
+2
-2
FlightDynamicsService.java
src/com/ejweb/modules/statistics/service/FlightDynamicsService.java
+8
-18
util.zip
src/com/jdair/util.zip
+0
-0
No files found.
.gitignore
0 → 100644
View file @
83db87d0
# Created by .ignore support plugin (hsz.mobi)
/im.message.log
/.idea/
/.classpath
/out/
/.project
/.settings/
resources/ejweb.properties
View file @
83db87d0
...
...
@@ -69,7 +69,7 @@ content.sign.private.key=FvNMhdkN5eTsgAfU2YHGJ2RfpKVi3omn
# Verify Post Content Sign(Default true)
is.verify.content.sign
=
false
# \u9996\u822A\u63A5\u53E3\u57FA\u672C\u5730\u5740
jdair.api.base.url
=
http
://123.56.146.7
jdair.api.base.url
=
http
s://dsp.jdair.net
jdair.api.base.param
=
ai.cc=7&ai.cp=10.68.26.52
#huaweiUC properties
...
...
resources/log4j.properties
View file @
83db87d0
# Root logger option
## log4j.rootLogger=DEBUG, WARN, INFO, stdout, R
log4j.rootLogger
=
DEBUG
, stdout, R
log4j.rootLogger
=
INFO
, stdout, R
#Console
log4j.appender.stdout
=
org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout
=
org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern
=
%-4r [%t] %-5p %c %x - %m%n
#log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.appender.stdout.layout.ConversionPattern
=
%d{yyyy-MM-dd HH:mm:ss a} [Thread: %t][ Class:%c Method: %l ]%n%p:%m%n
#RollingFile
log4j.appender.R
=
org.apache.log4j.RollingFileAppender
...
...
resources/mapper/modules/statistics/FlightDynamicsDao.xml
View file @
83db87d0
...
...
@@ -250,12 +250,12 @@ WHERE c.subtime BETWEEN CONVERT(CONCAT(DATE_ADD(#{fltDate},INTERVAL -1 DAY), " 2
update_by=VALUES(update_by),
update_date=VALUES(update_date)
</insert>
<!-- 获取飞机总量 -->
<select
id=
"getTotalFlight"
resultType=
"com.ejweb.modules.statistics.entity.FlightTotalEntity"
>
SELECT *
<!-- 获取
最近时间
飞机总量 -->
<select
id=
"get
Last
TotalFlight"
resultType=
"com.ejweb.modules.statistics.entity.FlightTotalEntity"
>
SELECT *
FROM foc_flight_total
WHERE flight_date=#{flightDate}
order by flight_date desc limit 1;
</select>
<select
id=
"getPlaneDailyUsage"
resultType=
"Double"
>
SELECT SUM(unix_timestamp(ata_chn) - unix_timestamp(atd_chn))/(60*60*#{flightTotal})
...
...
src/com/ejweb/core/conf/ErrorCode.class
deleted
100644 → 0
View file @
0d005762
File deleted
src/com/ejweb/core/conf/SecurityPropertyPlaceholderConfigurer.java
View file @
83db87d0
This diff is collapsed.
Click to expand it.
src/com/ejweb/modules/statistics/dao/FlightDynamicsDao.java
View file @
83db87d0
...
...
@@ -20,8 +20,8 @@ public interface FlightDynamicsDao extends BaseDao{
List
<
FlightDynamicsEntity
>
getDailyList
(
FlightDynamicsTotalBean
bean
);
public
Integer
updateTotalFlight
(
FlightTotalEntity
bean
);
public
FlightTotalEntity
getTotalFlight
(
FlightTotalEntity
bean
);
public
FlightTotalEntity
getLastTotalFlight
(
);
List
<
FlightDynamicsDetailEntity
>
getCancelList
(
FlightDynamicsDetailBean
bean
);
...
...
src/com/ejweb/modules/statistics/service/FlightDynamicsService.java
View file @
83db87d0
...
...
@@ -188,12 +188,7 @@ public class FlightDynamicsService extends BaseService<FlightDynamicsDao> {
}
else
{
LOG
.
debug
(
"没有数据"
);
}
int
flightTotal
=
this
.
getTotalFlight
(
bean
.
getFltDate
());
if
(
flightTotal
<
1
){
flightTotal
=
72
;
}
int
flightTotal
=
getLastTotalFlight
();
totalEntity
.
setPlanFlightTotal
(
flightTotal
);
totalEntity
.
setPlaneDailyUsage
(
dao
.
getPlaneDailyUsage
(
bean
.
getFltDate
(),
flightTotal
));
...
...
@@ -220,22 +215,17 @@ public class FlightDynamicsService extends BaseService<FlightDynamicsDao> {
return
dao
.
updateTotalFlight
(
bean
);
}
/**
* 获取某一天的飞机总量
*
* @author renmb
* @time 2017年2月8日
* @param flightDate
* 获取最近修改的飞机总量
*
* @return
*/
public
int
getTotalFlight
(
String
flightDate
){
FlightTotalEntity
bean
=
new
FlightTotalEntity
();
bean
.
setFlightDate
(
flightDate
);
FlightTotalEntity
total
=
dao
.
getTotalFlight
(
bean
);
if
(
total
==
null
)
public
int
getLastTotalFlight
()
{
FlightTotalEntity
total
=
dao
.
getLastTotalFlight
();
if
(
total
==
null
)
{
return
0
;
}
return
total
.
getFlightTotal
();
}
}
src/com/jdair/util.zip
View file @
83db87d0
No preview for this file type
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