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
5e8b9cf9
Commit
5e8b9cf9
authored
Jan 17, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改单位变更
parent
ebfb6ed7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+20
-1
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/JgChangeRegistrationUnitServiceImpl.java
View file @
5e8b9cf9
...
@@ -228,6 +228,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -228,6 +228,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
dto
.
setCompleteFirstTask
(
true
);
dto
.
setCompleteFirstTask
(
true
);
list
.
add
(
dto
);
list
.
add
(
dto
);
actWorkflowBatchDTO
.
setProcess
(
list
);
actWorkflowBatchDTO
.
setProcess
(
list
);
dto
.
setNextExecuteUserCompanyCode
(
noticeDto
.
getReceiveOrgCode
());
processTasks
=
cmWorkflowService
.
startBatch
(
actWorkflowBatchDTO
);
processTasks
=
cmWorkflowService
.
startBatch
(
actWorkflowBatchDTO
);
String
instanceId
=
processTasks
.
get
(
0
).
getProcessInstance
().
getId
();
String
instanceId
=
processTasks
.
get
(
0
).
getProcessInstance
().
getId
();
String
nextTaskId
=
processTasks
.
get
(
0
).
getNextTask
().
get
(
0
).
getId
();
String
nextTaskId
=
processTasks
.
get
(
0
).
getNextTask
().
get
(
0
).
getId
();
...
@@ -275,6 +276,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -275,6 +276,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
}
}
task
.
setVariable
(
map
);
task
.
setVariable
(
map
);
//执行流程
//执行流程
task
.
setNextExecuteUserCompanyCode
(
noticeDto
.
getReceiveOrgCode
());
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
task
);
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
task
);
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
...
@@ -409,6 +411,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -409,6 +411,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
ActWorkflowStartDTO
dto
=
new
ActWorkflowStartDTO
();
ActWorkflowStartDTO
dto
=
new
ActWorkflowStartDTO
();
dto
.
setProcessDefinitionKey
(
PROCESS_DEFINITION_KEY
);
dto
.
setProcessDefinitionKey
(
PROCESS_DEFINITION_KEY
);
dto
.
setBusinessKey
(
String
.
valueOf
(
i
));
dto
.
setBusinessKey
(
String
.
valueOf
(
i
));
dto
.
setNextExecuteUserCompanyCode
(
model
.
getReceiveOrgCode
());
dto
.
setCompleteFirstTask
(
true
);
dto
.
setCompleteFirstTask
(
true
);
list
.
add
(
dto
);
list
.
add
(
dto
);
}
}
...
@@ -759,6 +762,9 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -759,6 +762,9 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
task
.
setResultCode
(
"approvalStatus"
);
task
.
setResultCode
(
"approvalStatus"
);
task
.
setTaskId
(
taskId
);
task
.
setTaskId
(
taskId
);
task
.
setComment
(
""
);
task
.
setComment
(
""
);
task
.
setNextExecuteUserCompanyCode
(
this
.
getNextUserOrgCode
(
op
,
dto
));
task
.
setNextExecuteUserCompanyCode
(
dto
.
getReceiveOrgCode
());
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
op
);
map
.
put
(
"approvalStatus"
,
op
);
if
(!
ObjectUtils
.
isEmpty
(
jgChangeRegistrationUnit
.
getInstanceStatus
())
&&
if
(!
ObjectUtils
.
isEmpty
(
jgChangeRegistrationUnit
.
getInstanceStatus
())
&&
...
@@ -1111,7 +1117,20 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -1111,7 +1117,20 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
}
}
private
String
getNextUserOrgCode
(
String
operate
,
JgChangeRegistrationUnitDto
jgChangeRegistrationName
)
{
if
(
"0"
.
equals
(
operate
)){
// 执行通过节点,单位code为接收机构单位信息
return
jgChangeRegistrationName
.
getReceiveOrgCode
();
}
if
(
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_RECEIVE
.
getPass
())
||
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_RECEIVE
.
getReject
())
||
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_RECEIVE
.
getRollBack
())){
// 驳回且当前节点为一键节点时,单位code为发起人单位信息
return
jgChangeRegistrationName
.
getUseUnitCreditCode
();
}
// 2、3级驳回时,单位code为接收单位code
return
jgChangeRegistrationName
.
getReceiveOrgCode
();
}
private
Integer
getTaskStatusByName
(
String
auditStatus
)
{
private
Integer
getTaskStatusByName
(
String
auditStatus
)
{
return
commonServiceImpl
.
getDictionaryCodeByName
(
auditStatus
);
return
commonServiceImpl
.
getDictionaryCodeByName
(
auditStatus
);
}
}
...
...
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