Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
Project
Project
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
杜科
BasicAPI
Commits
0e9eb478
Commit
0e9eb478
authored
Apr 17, 2023
by
shyWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDM前端改造
流程待办优化
parent
36ec473d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
WfcProcessController.java
src/com/yonde/wfc/controller/WfcProcessController.java
+2
-3
WfcProcessService.java
src/com/yonde/wfc/service/WfcProcessService.java
+6
-5
No files found.
src/com/yonde/wfc/controller/WfcProcessController.java
View file @
0e9eb478
...
@@ -66,10 +66,9 @@ public class WfcProcessController {
...
@@ -66,10 +66,9 @@ public class WfcProcessController {
@GetMapping
({
"/task/countOfType"
})
@GetMapping
({
"/task/countOfType"
})
public
Map
<
String
,
Integer
>
getTaskTypeAndCount
(
@RequestParam
(
"userName"
)
String
userName
)
{
public
Map
<
String
,
Integer
>
getTaskTypeAndCount
(
@RequestParam
(
"userName"
)
String
userName
)
{
Map
<
String
,
Integer
>
resultMap
=
new
HashMap
<
String
,
Integer
>();
Map
<
String
,
Integer
>
resultMap
=
new
HashMap
<
String
,
Integer
>();
List
<
DxWfProcessTaskVO
>
todoTaskList
=
null
;
try
{
try
{
todoTaskList
=
WfcProcessService
.
getTodoTaskList
(
userName
);
int
todoTaskListSize
=
WfcProcessService
.
getTodoTaskListSize
(
userName
);
resultMap
.
put
(
"todoTask"
,
todoTaskList
.
size
()
);
resultMap
.
put
(
"todoTask"
,
todoTaskList
Size
);
resultMap
.
put
(
"forwardTask"
,
0
);
resultMap
.
put
(
"forwardTask"
,
0
);
resultMap
.
put
(
"unClaimedTask"
,
0
);
resultMap
.
put
(
"unClaimedTask"
,
0
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/com/yonde/wfc/service/WfcProcessService.java
View file @
0e9eb478
...
@@ -137,11 +137,6 @@ public class WfcProcessService implements RemoteAccess {
...
@@ -137,11 +137,6 @@ public class WfcProcessService implements RemoteAccess {
objVO
=
new
DxChangeNoticeVo
(
changeOrder2
);
objVO
=
new
DxChangeNoticeVo
(
changeOrder2
);
return
objVO
;
return
objVO
;
}
}
if
(
pbo
instanceof
WTChangeOrder2
)
{
WTChangeOrder2
changeOrder2
=
(
WTChangeOrder2
)
pbo
;
objVO
=
new
DxChangeNoticeVo
(
changeOrder2
);
return
objVO
;
}
if
(
pbo
instanceof
WTChangeRequest2
)
{
if
(
pbo
instanceof
WTChangeRequest2
)
{
WTChangeRequest2
changeRequest2
=
(
WTChangeRequest2
)
pbo
;
WTChangeRequest2
changeRequest2
=
(
WTChangeRequest2
)
pbo
;
objVO
=
new
DxChangeRequestVo
(
changeRequest2
);
objVO
=
new
DxChangeRequestVo
(
changeRequest2
);
...
@@ -302,6 +297,11 @@ public class WfcProcessService implements RemoteAccess {
...
@@ -302,6 +297,11 @@ public class WfcProcessService implements RemoteAccess {
return
dxWfProcessTaskVO
;
return
dxWfProcessTaskVO
;
}
}
/**
* 完成待办
* @param operationArgsVO
* @throws Exception
*/
public
static
void
executeOperation
(
DxWfTaskOperationArgsVO
operationArgsVO
)
throws
Exception
{
public
static
void
executeOperation
(
DxWfTaskOperationArgsVO
operationArgsVO
)
throws
Exception
{
if
(!
RemoteMethodServer
.
ServerFlag
)
{
if
(!
RemoteMethodServer
.
ServerFlag
)
{
RemoteMethodServer
.
getDefault
().
invoke
(
"executeOperation"
,
WfcProcessService
.
class
.
getName
(),
null
,
RemoteMethodServer
.
getDefault
().
invoke
(
"executeOperation"
,
WfcProcessService
.
class
.
getName
(),
null
,
...
@@ -329,6 +329,7 @@ public class WfcProcessService implements RemoteAccess {
...
@@ -329,6 +329,7 @@ public class WfcProcessService implements RemoteAccess {
vector
=
WorkflowUtil
.
toVector
(
routerSelect
);
vector
=
WorkflowUtil
.
toVector
(
routerSelect
);
}
}
WorkflowUtil
.
completeTask
(
workItem
,
vector
,
description
);
WorkflowUtil
.
completeTask
(
workItem
,
vector
,
description
);
return
;
}
}
if
(
"delegateTask"
.
equalsIgnoreCase
(
operationName
))
{
if
(
"delegateTask"
.
equalsIgnoreCase
(
operationName
))
{
String
targetUserName
=
operationArgsVO
.
getTargetUserId
();
String
targetUserName
=
operationArgsVO
.
getTargetUserId
();
...
...
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