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
a16dad03
Commit
a16dad03
authored
Aug 12, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他流程
parent
814ad149
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
ProblemInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
+12
-0
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+6
-3
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 @
a16dad03
...
@@ -437,6 +437,8 @@ public class ProblemInitiationServiceImpl {
...
@@ -437,6 +437,8 @@ public class ProblemInitiationServiceImpl {
public
void
updateProBlemFlowStatus
(
String
instanceId
){
public
void
updateProBlemFlowStatus
(
String
instanceId
){
String
taskName
=
""
;
LambdaQueryWrapper
<
QualityProblem
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
QualityProblem
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
QualityProblem:
:
getInstanceId
,
instanceId
);
wrapper
.
eq
(
QualityProblem:
:
getInstanceId
,
instanceId
);
QualityProblem
qualityProblem
=
qualityProblemService
.
getOne
(
wrapper
);
QualityProblem
qualityProblem
=
qualityProblemService
.
getOne
(
wrapper
);
...
@@ -445,6 +447,16 @@ public class ProblemInitiationServiceImpl {
...
@@ -445,6 +447,16 @@ public class ProblemInitiationServiceImpl {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
AjaxResult
ajaxResult
=
new
AjaxResult
();
JSONObject
dataObject
=
new
JSONObject
();
try
{
ajaxResult
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
);
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
taskName
=
dataObject
.
getString
(
"name"
);
}
catch
(
Exception
e
)
{
taskName
=
"流程结束!"
;
}
qualityProblem
.
setStatus
(
taskName
);
qualityProblem
.
setProcessProgress
(
ProblemProcessEnum
.
statusMap
.
get
(
qualityProblem
.
getStatus
()));
qualityProblem
.
setProcessProgress
(
ProblemProcessEnum
.
statusMap
.
get
(
qualityProblem
.
getStatus
()));
qualityProblemService
.
updateById
(
qualityProblem
);
qualityProblemService
.
updateById
(
qualityProblem
);
}
}
...
...
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 @
a16dad03
...
@@ -1001,13 +1001,16 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -1001,13 +1001,16 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
* @return
* @return
*/
*/
public
String
getOverProjectFlowTaskName
(
String
instanceId
){
public
String
getOverProjectFlowTaskName
(
String
instanceId
){
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
)
;
AjaxResult
ajaxResult
=
null
;
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)))
;
JSONObject
jsonObject
=
null
;
String
taskName
=
"竣工流程结束
!
"
;
String
taskName
=
"竣工流程结束
!
"
;
try
{
try
{
ajaxResult
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
);
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
taskName
=
jsonObject
.
getString
(
"name"
);
taskName
=
jsonObject
.
getString
(
"name"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"当前流程名称为空"
);
log
.
error
(
"当前流程名称为空"
);
taskName
=
"竣工流程结束!"
;
}
}
return
taskName
;
return
taskName
;
}
}
...
...
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