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
040b1cef
Commit
040b1cef
authored
Apr 24, 2020
by
chenweisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
7419a00f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
TaskController.java
...in/java/com/keymobile/rest/controller/TaskController.java
+3
-0
Process.java
src/main/java/com/keymobile/rest/model/Process.java
+2
-0
No files found.
src/main/java/com/keymobile/rest/controller/TaskController.java
View file @
040b1cef
...
@@ -351,6 +351,9 @@ public class TaskController {
...
@@ -351,6 +351,9 @@ public class TaskController {
processes
.
forEach
(
process
->
{
processes
.
forEach
(
process
->
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
process
.
getId
());
map
.
put
(
"id"
,
process
.
getId
());
map
.
put
(
"name"
,
process
.
getActivity
().
getName
());
map
.
put
(
"startAt"
,
process
.
getStartAt
());
map
.
put
(
"remake"
,
process
.
getActivity
().
getRemark
());
HistoricProcessInstance
historicProcessInstance
=
historyService
.
createHistoricProcessInstanceQuery
().
processInstanceId
(
process
.
getProcessId
()).
singleResult
();
HistoricProcessInstance
historicProcessInstance
=
historyService
.
createHistoricProcessInstanceQuery
().
processInstanceId
(
process
.
getProcessId
()).
singleResult
();
int
total
=
0
;
int
total
=
0
;
int
completed
=
0
;
int
completed
=
0
;
...
...
src/main/java/com/keymobile/rest/model/Process.java
View file @
040b1cef
package
com
.
keymobile
.
rest
.
model
;
package
com
.
keymobile
.
rest
.
model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -30,6 +31,7 @@ public class Process implements Serializable {
...
@@ -30,6 +31,7 @@ public class Process implements Serializable {
private
String
processId
;
private
String
processId
;
@Column
(
nullable
=
false
,
name
=
"start_at"
)
@Column
(
nullable
=
false
,
name
=
"start_at"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Timestamp
startAt
;
private
Timestamp
startAt
;
/**
/**
...
...
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