Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datacollector
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
chenweisong
datacollector
Commits
75c3092a
Commit
75c3092a
authored
Apr 03, 2020
by
chenweisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
3a469c0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
+26
-17
TaskController.java
...in/java/com/keymobile/rest/controller/TaskController.java
+15
-15
Mission.java
src/main/java/com/keymobile/rest/vo/Mission.java
+11
-2
No files found.
src/main/java/com/keymobile/rest/controller/TaskController.java
View file @
75c3092a
...
@@ -307,22 +307,22 @@ public class TaskController {
...
@@ -307,22 +307,22 @@ public class TaskController {
@ApiOperation
(
value
=
"进度列表"
)
@ApiOperation
(
value
=
"进度列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"taskId"
,
value
=
"活动id"
,
paramType
=
"path"
,
required
=
true
,
dataType
=
"string"
),
@ApiImplicitParam
(
name
=
"pageNo"
,
value
=
"当前页"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
,
defaultValue
=
"1"
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"状态"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"integer"
,
example
=
"0"
)
@ApiImplicitParam
(
name
=
"pageSize"
,
value
=
"当前页条数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
,
defaultValue
=
"10"
),
})
@ApiImplicitParam
(
name
=
"name"
,
value
=
"名称"
,
paramType
=
"query"
,
dataType
=
"string"
),
@GetMapping
(
value
=
"/task/progress"
)
@ApiImplicitParam
(
name
=
"status"
,
value
=
"状态"
,
paramType
=
"query"
,
dataType
=
"integer"
)
public
Object
viewTasksProgress
()
{
return
""
;
}
@ApiOperation
(
value
=
"查看当前活动进度"
,
hidden
=
true
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"taskId"
,
value
=
"活动id"
,
paramType
=
"path"
,
required
=
true
,
dataType
=
"long"
)
})
})
@PostMapping
(
value
=
"/task/progress/{taskId}"
)
@GetMapping
(
value
=
"/task/progresses"
)
public
Object
viewTaskProgress
(
@PathVariable
long
taskId
)
{
public
SimplePage
viewTasksProgress
(
int
pageNo
,
int
pageSize
,
String
name
,
Integer
status
)
{
return
""
;
Page
<
Activity
>
page
;
String
orderBy
=
"descending"
;
//
String
propBy
=
"id"
;
// groupBy
if
(
name
!=
null
)
{
page
=
activityService
.
findAllByName
(
name
,
pageNo
,
pageSize
,
orderBy
,
propBy
);
}
else
{
page
=
activityService
.
findAll
(
pageNo
,
pageSize
,
orderBy
,
propBy
);
}
return
SimplePage
.
of
(
page
);
}
}
public
Mission
convertTaskToMission
(
Task
task
,
Map
<
String
,
Object
>
params
)
{
public
Mission
convertTaskToMission
(
Task
task
,
Map
<
String
,
Object
>
params
)
{
...
...
src/main/java/com/keymobile/rest/vo/Mission.java
View file @
75c3092a
package
com
.
keymobile
.
rest
.
vo
;
package
com
.
keymobile
.
rest
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
@ApiModel
@Data
@Data
@Builder
@Builder
public
class
Mission
{
public
class
Mission
{
@ApiModelProperty
(
name
=
"id"
,
value
=
"当前任务id"
)
private
String
id
;
private
String
id
;
@ApiModelProperty
(
name
=
"user"
,
value
=
"当前登录用户"
)
private
String
user
;
private
String
user
;
@ApiModelProperty
(
name
=
"taskType"
,
value
=
"task类别 1 个人task 2 组task"
)
private
int
taskType
;
private
int
taskType
;
@ApiModelProperty
(
name
=
"createAt"
,
value
=
"任务发放时间"
)
private
String
createAt
;
private
String
createAt
;
@ApiModelProperty
(
name
=
"missionType"
,
value
=
"任务类别(前身为kind) 1 填写补录数据 2 审核补录数据 3 负责人审核 4 数据回流"
)
private
int
missionType
;
private
int
missionType
;
@ApiModelProperty
(
name
=
"mission"
,
value
=
"任务名称"
)
private
String
mission
;
private
String
mission
;
@ApiModelProperty
(
name
=
"excelId"
,
value
=
"模板id(前身为excelList[0])"
)
private
long
excelId
;
private
long
excelId
;
@ApiModelProperty
(
name
=
"processId"
,
value
=
"流程实例id 补录任务需要用到"
)
private
String
processId
;
private
String
processId
;
}
}
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