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
e7530c54
Commit
e7530c54
authored
Jan 11, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:移装变更登记bug
parent
dae0e5c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
JgChangeRegistrationTransferController.java
...iz/controller/JgChangeRegistrationTransferController.java
+1
-1
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+4
-11
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/controller/JgChangeRegistrationTransferController.java
View file @
e7530c54
...
...
@@ -96,7 +96,7 @@ public class JgChangeRegistrationTransferController extends BaseController {
@PostMapping
(
value
=
"/flowExecute"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"执行流程"
,
notes
=
"执行流程"
)
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
jgChangeRegistrationTransferService
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"operate"
)),
String
.
valueOf
(
map
.
get
(
"opinion"
))
,
true
);
jgChangeRegistrationTransferService
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"operate"
)),
String
.
valueOf
(
map
.
get
(
"opinion"
)));
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
...
...
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 @
e7530c54
...
...
@@ -311,8 +311,9 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
//发起流程
if
(
"1"
.
equals
(
submitType
))
{
String
instanceId
=
""
;
if
(
map
.
containsKey
(
"instanceId"
))
{
instanceId
=
map
.
get
(
"instanceId"
).
toString
();
if
(
tableData
.
containsKey
(
"instanceId"
)
&&
!
ValidationUtil
.
isEmpty
(
tableData
.
get
(
"instanceId"
)))
{
instanceId
=
tableData
.
get
(
"instanceId"
).
toString
();
this
.
flowExecute
(
oldTransfer
.
getSequenceNbr
(),
instanceId
,
"0"
,
""
);
}
else
{
// 如果是新启动的流程开启自动访问
String
equipListName
=
this
.
getBaseMapper
().
getEquiplistNameByEquiplist
(
Optional
.
ofNullable
(
tableData
.
get
(
"equList"
).
toString
()).
orElse
(
" "
));
...
...
@@ -327,13 +328,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
//生成代办
this
.
createToDoTask
(
Arrays
.
asList
(
workflowResult
),
oldTransfer
,
reginParams
.
getUserModel
().
getUserName
());
}
if
(!
ObjectUtils
.
isEmpty
(
instanceId
))
{
// 修改数据信息
// this.updateExecuteIds(oldTransfer.getSequenceNbr(), "0");
this
.
flowExecute
(
oldTransfer
.
getSequenceNbr
(),
instanceId
,
"0"
,
""
,
false
);
}
}
return
true
;
}
...
...
@@ -355,9 +349,8 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
* @param instanceId
* @param operate
* @param comment
* @param update
*/
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
,
boolean
update
)
{
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
)
{
WorkflowResultDto
workflowResult
=
new
WorkflowResultDto
();
JgChangeRegistrationTransfer
transfer
=
this
.
getById
(
id
);
try
{
...
...
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