Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
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
zhangkb
indicators
Commits
fa85cf8c
Commit
fa85cf8c
authored
Jul 13, 2020
by
张祺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取任务填报值的方法
parent
3a0ba982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
DataEnterCtrl.java
...com/keymobile/indicators/api/hytobacco/DataEnterCtrl.java
+4
-3
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/DataEnterCtrl.java
View file @
fa85cf8c
...
...
@@ -99,13 +99,14 @@ public class DataEnterCtrl {
@GetMapping
(
"findEnterValues"
)
public
Page
<
TaskIndValue
>
findEnterValues
(
@ApiParam
(
"任务ID"
)
@RequestParam
(
"taskId"
)
String
taskId
,
@ApiParam
(
value
=
"页码,从1开始"
,
defaultValue
=
"1"
)
@RequestParam
(
"pageNo"
)
int
pageNo
,
@ApiParam
(
value
=
"每页条数"
,
defaultValue
=
"10"
)
@RequestParam
(
"pageSize"
)
int
pageSize
@ApiParam
(
value
=
"每页条数"
,
defaultValue
=
"10"
)
@RequestParam
(
"pageSize"
)
int
pageSize
,
@ApiParam
(
value
=
"是否包含需要计算的数据项(审核中、填报中的时候不要传true)"
,
defaultValue
=
"false"
)
@RequestParam
(
"includeFormula"
)
boolean
includeFormula
)
{
List
<
TaskIndValue
>
list
=
new
ArrayList
<>();
long
total
=
taskService
.
findCountByTaskId
(
taskId
,
false
);
long
total
=
taskService
.
findCountByTaskId
(
taskId
,
includeFormula
);
PageRequest
request
=
PageRequest
.
of
(
pageNo
-
1
,
pageSize
);
if
(
total
>
0
)
{
list
=
taskService
.
findByPageAndTaskId
(
taskId
,
request
.
getOffset
(),
pageSize
,
false
);
list
=
taskService
.
findByPageAndTaskId
(
taskId
,
request
.
getOffset
(),
pageSize
,
includeFormula
);
}
Page
<
TaskIndValue
>
pageResult
=
new
PageImpl
<>(
list
,
request
,
total
);
return
pageResult
;
...
...
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