Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
d8603a88
Commit
d8603a88
authored
Aug 03, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
e96bd77a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
ProblemInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
+2
-2
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+9
-9
TaskServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
+1
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
View file @
d8603a88
...
...
@@ -118,7 +118,7 @@ public class ProblemInitiationServiceImpl {
String
taskType
=
new
String
();
JSONObject
object
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
objectd
));
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
ProjectInitiation
projectInitiation
=
new
ProjectInitiation
();
projectInitiation
.
setInstanceId
(
instanceId
);
...
...
@@ -526,7 +526,7 @@ public class ProblemInitiationServiceImpl {
dto1
.
setResult
(
status
);
dto1
.
setResultCode
(
"condition"
);
dto1
.
setTaskId
(
instanceId
);
AjaxResult
ajaxResult1
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult1
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
if
(!
ObjectUtils
.
isEmpty
(
ajaxResult1
.
get
(
"data"
))){
taskId
=
((
Map
)
ajaxResult1
.
get
(
"data"
)).
get
(
"id"
).
toString
();
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
completeByTask
(
taskId
,
dto1
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
View file @
d8603a88
...
...
@@ -234,12 +234,12 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
AjaxResult
ajaxResult
=
new
AjaxResult
();
JSONObject
dataObject
=
new
JSONObject
();
try
{
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
ajaxResult
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
}
catch
(
Exception
e
)
{
//当存在多个用户任务时 主要是安装/设计提交资料修改
logger
.
error
(
"当前用户存在多个任务"
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTask
List
(
instanceId
)));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTask
sForDisposal
(
instanceId
)));
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"data"
);
boolean
isEnd
=
false
;
for
(
Object
o:
jsonArray
){
...
...
@@ -332,7 +332,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
||
project
.
getStatus
().
contains
(
ProjectInitiationEnum
.
安装负责人指定项目资料员
.
getName
())
)
{
unitIds
=
unitIds
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
AjaxResult
ajaxResultR
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResultR
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResultR
.
get
(
"data"
)));
try
{
taskName
=
dataObject
.
getString
(
"name"
);
...
...
@@ -546,12 +546,12 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
JSONObject
dataObject
=
new
JSONObject
();
boolean
isEnd
=
false
;
try
{
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
}
catch
(
Exception
e
)
{
//当存在多个用户任务时 主要是安装/设计提交资料修改
logger
.
error
(
"当前用户存在多个任务"
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTask
List
(
instanceId
)));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTask
sForDisposal
(
instanceId
)));
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"data"
);
for
(
Object
o:
jsonArray
){
String
name
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
o
)).
getString
(
"name"
);
...
...
@@ -706,7 +706,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
List
<
Long
>
unitIds
=
new
ArrayList
<>();
Long
extendId
=
-
1L
;
try
{
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
overProjectDto
.
getInstanceId
());
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
NoAuth
(
overProjectDto
.
getInstanceId
());
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
String
taskId
=
dataObject
.
getString
(
"id"
);
LambdaQueryWrapper
<
ProjectInitiation
>
wrapper
=
new
LambdaQueryWrapper
<>();
...
...
@@ -784,7 +784,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
* @return
*/
public
String
getOverProjectFlowTaskName
(
String
instanceId
){
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
String
taskName
=
"竣工流程结束!"
;
try
{
...
...
@@ -845,7 +845,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
dto1
.
setResult
(
status
);
dto1
.
setResultCode
(
"condition"
);
dto1
.
setTaskId
(
instanceId
);
AjaxResult
ajaxResult1
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult1
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
if
(!
ObjectUtils
.
isEmpty
(
ajaxResult1
.
get
(
"data"
)))
{
taskId
=
((
Map
)
ajaxResult1
.
get
(
"data"
)).
get
(
"id"
).
toString
();
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
completeByTask
(
taskId
,
dto1
);
...
...
@@ -908,7 +908,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
JSONObject
dataObject
=
new
JSONObject
();
String
auditName
=
"流程结束!"
;
try
{
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
NoAuth
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
View file @
d8603a88
...
...
@@ -202,7 +202,7 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
// AjaxResult ajaxResult = Workflow.taskClient.getTask(instanceId);
// JSONObject data = JSON.parseObject(JSON.toJSONString(ajaxResult.get("data")));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTask
List
(
instanceId
)));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
Workflow
.
taskClient
.
getTask
sForDisposal
(
instanceId
)));
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"data"
);
if
(
jsonArray
.
size
()
>
1
)
{
for
(
Object
o:
jsonArray
){
...
...
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