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
d9284845
Commit
d9284845
authored
Jan 17, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:移装变更 去掉流程接口调用时的try catch
parent
245211d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+2
-9
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgChangeRegistrationTransferServiceImpl.java
View file @
d9284845
...
@@ -353,7 +353,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -353,7 +353,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
)
{
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
)
{
WorkflowResultDto
workflowResult
=
new
WorkflowResultDto
();
WorkflowResultDto
workflowResult
=
new
WorkflowResultDto
();
JgChangeRegistrationTransfer
transfer
=
this
.
getById
(
id
);
JgChangeRegistrationTransfer
transfer
=
this
.
getById
(
id
);
try
{
String
taskId
=
transfer
.
getNextTaskId
();
String
taskId
=
transfer
.
getNextTaskId
();
//组装信息
//组装信息
TaskResultDTO
dto
=
new
TaskResultDTO
();
TaskResultDTO
dto
=
new
TaskResultDTO
();
...
@@ -373,9 +373,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -373,9 +373,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
workflowResult
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
complete
)).
get
(
0
);
workflowResult
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
complete
)).
get
(
0
);
// 更新下一步执行人
// 更新下一步执行人
this
.
updateExecuteIds
(
instanceId
,
transfer
,
operate
,
workflowResult
);
this
.
updateExecuteIds
(
instanceId
,
transfer
,
operate
,
workflowResult
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
/**
/**
...
@@ -1032,7 +1030,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -1032,7 +1030,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
* 启动工作流
* 启动工作流
*/
*/
private
WorkflowResultDto
startWorkFlork
(
String
receiveOrgCreditCode
)
{
private
WorkflowResultDto
startWorkFlork
(
String
receiveOrgCreditCode
)
{
try
{
ActWorkflowBatchDTO
workflowBatchParams
=
new
ActWorkflowBatchDTO
();
ActWorkflowBatchDTO
workflowBatchParams
=
new
ActWorkflowBatchDTO
();
List
<
ActWorkflowStartDTO
>
workflowList
=
new
ArrayList
<>();
List
<
ActWorkflowStartDTO
>
workflowList
=
new
ArrayList
<>();
ActWorkflowStartDTO
workflow
=
new
ActWorkflowStartDTO
();
ActWorkflowStartDTO
workflow
=
new
ActWorkflowStartDTO
();
...
@@ -1046,10 +1043,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -1046,10 +1043,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
List
<
ProcessTaskDTO
>
processTasks
=
icmWorkflowService
.
startBatch
(
workflowBatchParams
);
List
<
ProcessTaskDTO
>
processTasks
=
icmWorkflowService
.
startBatch
(
workflowBatchParams
);
// 组装工作流返回的数据
// 组装工作流返回的数据
return
commonService
.
buildWorkFlowInfo
(
processTasks
).
get
(
0
);
return
commonService
.
buildWorkFlowInfo
(
processTasks
).
get
(
0
);
}
catch
(
Exception
e
)
{
log
.
error
(
"提交失败:{}"
,
e
);
throw
new
BadRequest
(
"提交失败"
+
e
.
getMessage
());
}
}
}
/**
/**
...
...
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