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
bc0ee881
Commit
bc0ee881
authored
Mar 20, 2020
by
Lenovo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调机修改
parent
06ebe087
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
StatisticalController.java
src/com/ejweb/modules/airport/api/StatisticalController.java
+2
-1
StatisticalService.java
src/com/ejweb/modules/airport/service/StatisticalService.java
+3
-2
No files found.
src/com/ejweb/modules/airport/api/StatisticalController.java
View file @
bc0ee881
...
...
@@ -53,7 +53,8 @@ public class StatisticalController{
if
(
message
==
null
){
// 参数校验为通过
PageEntity
<
StatisticalEntity
>
list
=
statisticalService
.
getStatisticalList
(
bean
);
if
(
list
==
null
){
// 查询结果为空
// 查询结果为空
if
(
list
==
null
)
{
responseBean
.
setMessage
(
GConstants
.
EMPTY
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2001
);
return
responseBean
;
...
...
src/com/ejweb/modules/airport/service/StatisticalService.java
View file @
bc0ee881
...
...
@@ -76,8 +76,9 @@ public class StatisticalService extends BaseService<StatisticalDao> {
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
format
=
sdf
.
format
(
date
);
if
(
"05"
.
equals
(
e
.
getVerifType
()))
{
if
(
null
!=
startTime
&&
format
==
startTime
)
{
e
.
setExpiryDate
(
10
+
""
);
//调机类型,如果当天为开航时间,有效期为1天,否则设置为负数,前端判断有效期为负数,显示--
if
(
null
!=
startTime
&&
format
.
equals
(
startTime
))
{
e
.
setExpiryDate
(
1
+
""
);
}
else
{
e
.
setExpiryDate
(-
10
+
""
);
}
...
...
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