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
fbd86118
Commit
fbd86118
authored
Nov 13, 2020
by
java-温文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验
parent
bc1c7c8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
StatisticalController.java
src/com/ejweb/modules/airport/api/StatisticalController.java
+14
-2
No files found.
src/com/ejweb/modules/airport/api/StatisticalController.java
View file @
fbd86118
...
@@ -103,7 +103,9 @@ public class StatisticalController{
...
@@ -103,7 +103,9 @@ public class StatisticalController{
public
ResponseBean
getList
(
RequestBean
requestBean
){
public
ResponseBean
getList
(
RequestBean
requestBean
){
ResponseBean
responseBean
=
new
ResponseBean
();
ResponseBean
responseBean
=
new
ResponseBean
();
StatisticalListBean
bean
=
requestBean
.
getObjectBean
(
StatisticalListBean
.
class
);
StatisticalListBean
bean
=
requestBean
.
getObjectBean
(
StatisticalListBean
.
class
);
String
message
=
statisticalService
.
validate
(
bean
);
if
(
message
==
null
){
bean
.
setPageSize
(
1000
);
// 参数校验为通过
// 参数校验为通过
PageEntity
<
StatisticalListEntity
>
list
=
statisticalService
.
getList
(
bean
);
PageEntity
<
StatisticalListEntity
>
list
=
statisticalService
.
getList
(
bean
);
// 查询结果为空
// 查询结果为空
...
@@ -117,12 +119,18 @@ public class StatisticalController{
...
@@ -117,12 +119,18 @@ public class StatisticalController{
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2000
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_2000
);
return
responseBean
;
return
responseBean
;
}
}
responseBean
.
setMessage
(
message
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4001
);
return
responseBean
;
}
@RequestMapping
(
value
=
"newExport"
)
@RequestMapping
(
value
=
"newExport"
)
public
ResponseBean
newExport
(
RequestBean
requestBean
,
HttpServletResponse
response
){
public
ResponseBean
newExport
(
RequestBean
requestBean
,
HttpServletResponse
response
){
ResponseBean
responseBean
=
new
ResponseBean
();
ResponseBean
responseBean
=
new
ResponseBean
();
StatisticalListBean
bean
=
requestBean
.
getObjectBean
(
StatisticalListBean
.
class
);
StatisticalListBean
bean
=
requestBean
.
getObjectBean
(
StatisticalListBean
.
class
);
String
message
=
statisticalService
.
validate
(
bean
);
if
(
message
==
null
){
bean
.
setPageSize
(
1000
);
// 参数校验为通过
// 参数校验为通过
PageEntity
<
StatisticalListEntity
>
page
=
statisticalService
.
getList
(
bean
);
PageEntity
<
StatisticalListEntity
>
page
=
statisticalService
.
getList
(
bean
);
List
<
StatisticalListEntity
>
list
=
new
ArrayList
<
StatisticalListEntity
>();
List
<
StatisticalListEntity
>
list
=
new
ArrayList
<
StatisticalListEntity
>();
...
@@ -142,4 +150,8 @@ public class StatisticalController{
...
@@ -142,4 +150,8 @@ public class StatisticalController{
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4001
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4001
);
return
responseBean
;
return
responseBean
;
}
}
responseBean
.
setMessage
(
message
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4001
);
return
responseBean
;
}
}
}
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