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
c7b649ee
Commit
c7b649ee
authored
Jan 12, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改待办route_path
parent
0674b8c6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
28 deletions
+112
-28
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+110
-26
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+2
-2
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 @
c7b649ee
...
@@ -256,6 +256,48 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -256,6 +256,48 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
notice
.
setStatus
(
WorkFlowStatusEnum
.
UNITCHANGE_RECEIVE
.
getPass
());
notice
.
setStatus
(
WorkFlowStatusEnum
.
UNITCHANGE_RECEIVE
.
getPass
());
JgChangeRegistrationUnitMapper
.
updateById
(
notice
);
JgChangeRegistrationUnitMapper
.
updateById
(
notice
);
createTaskModel
(
notice
,
taskname
,
"1"
,
nextUserIds
);
createTaskModel
(
notice
,
taskname
,
"1"
,
nextUserIds
);
}
else
{
ArrayList
<
String
>
roleList
=
new
ArrayList
<>();
String
taskId
=
noticeDto
.
getNextTaskId
();
//组装信息
TaskResultDTO
task
=
new
TaskResultDTO
();
task
.
setResultCode
(
"approvalStatus"
);
task
.
setTaskId
(
taskId
);
task
.
setComment
(
""
);
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
op
);
if
(!
ObjectUtils
.
isEmpty
(
noticeDto
.
getInstanceStatus
())
&&
(
noticeDto
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getReject
())
||
noticeDto
.
getAuditStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getRollBack
())))
{
map
.
put
(
"approvalStatus"
,
"提交"
);
}
task
.
setVariable
(
map
);
//执行流程
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
taskId
,
task
);
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
String
taskCode
=
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
();
String
taskName1
=
""
;
String
nextTaskId
=
""
;
this
.
buildRoleList
(
Collections
.
singletonList
(
processTaskDTO
),
roleList
,
roleListAll
);
List
<
WorkflowResultDto
>
workflowResultDtos
=
commonServiceImpl
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
));
String
nextUserIds
=
workflowResultDtos
.
get
(
0
).
getNextExecutorUserIds
();
if
(
processTaskDTO
!=
null
&&
processTaskDTO
.
getNextTask
()
!=
null
&&
processTaskDTO
.
getNextTask
().
size
()
>
0
){
taskCode
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getKey
();
taskName1
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getName
();
nextTaskId
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getId
();
}
bean
.
setNextExecutorIds
(
String
.
join
(
","
,
roleList
));
if
(!
ObjectUtils
.
isEmpty
(
bean
.
getInstanceStatus
()))
{
bean
.
setInstanceStatus
(
bean
.
getInstanceStatus
()
+
","
+
String
.
join
(
","
,
roleList
));
}
else
{
bean
.
setInstanceStatus
(
String
.
join
(
","
,
roleList
));
}
bean
.
setNextTaskId
(
nextTaskId
);
bean
.
setPromoter
(
RequestContext
.
getExeUserId
());
bean
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
taskCode
).
getPass
());
executeOneStep
(
bean
,
taskName1
,
nextUserIds
,
op
);
JgChangeRegistrationUnitMapper
.
updateById
(
bean
);
}
}
}
else
{
}
else
{
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
...
@@ -352,6 +394,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -352,6 +394,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
List
<
String
>
instanceIdList
=
new
ArrayList
<>();
List
<
String
>
instanceIdList
=
new
ArrayList
<>();
List
<
String
>
taskIds
=
new
ArrayList
<>();
List
<
String
>
taskIds
=
new
ArrayList
<>();
List
<
WorkflowResultDto
>
workflowResultDtos
=
new
ArrayList
<>();
List
<
WorkflowResultDto
>
workflowResultDtos
=
new
ArrayList
<>();
String
nextExecutorRoleIds
=
""
;
if
(
SUBMIT_TYPE_FLOW
.
equals
(
submitType
))
{
if
(
SUBMIT_TYPE_FLOW
.
equals
(
submitType
))
{
// 发起流程
// 发起流程
// ActWorkflowStartDTO dto = new ActWorkflowStartDTO();
// ActWorkflowStartDTO dto = new ActWorkflowStartDTO();
...
@@ -368,7 +411,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -368,7 +411,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
actWorkflowBatchDTO
.
setProcess
(
list
);
actWorkflowBatchDTO
.
setProcess
(
list
);
List
<
ProcessTaskDTO
>
processTaskDTOS
=
cmWorkflowService
.
startBatch
(
actWorkflowBatchDTO
);
List
<
ProcessTaskDTO
>
processTaskDTOS
=
cmWorkflowService
.
startBatch
(
actWorkflowBatchDTO
);
workflowResultDtos
=
commonServiceImpl
.
buildWorkFlowInfo
(
processTaskDTOS
);
workflowResultDtos
=
commonServiceImpl
.
buildWorkFlowInfo
(
processTaskDTOS
);
nextExecutorRoleIds
=
workflowResultDtos
.
get
(
0
).
getNextExecutorRoleIds
();
for
(
WorkflowResultDto
processTaskDTO
:
workflowResultDtos
)
{
for
(
WorkflowResultDto
processTaskDTO
:
workflowResultDtos
)
{
instanceIdList
.
add
(
processTaskDTO
.
getInstanceId
());
instanceIdList
.
add
(
processTaskDTO
.
getInstanceId
());
taskIds
.
add
(
processTaskDTO
.
getNextTaskId
());
taskIds
.
add
(
processTaskDTO
.
getNextTaskId
());
...
@@ -430,6 +473,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -430,6 +473,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
List
<
JgChangeRegistrationUnit
>
list
=
new
ArrayList
<>();
List
<
JgChangeRegistrationUnit
>
list
=
new
ArrayList
<>();
List
<
JgChangeRegistrationUnitEq
>
equipList
=
new
ArrayList
<>();
List
<
JgChangeRegistrationUnitEq
>
equipList
=
new
ArrayList
<>();
String
finalNextExecutorRoleIds
=
nextExecutorRoleIds
;
deviceList
.
forEach
(
obj
->
{
deviceList
.
forEach
(
obj
->
{
JgChangeRegistrationUnitEq
jgRelationEquip
=
new
JgChangeRegistrationUnitEq
();
JgChangeRegistrationUnitEq
jgRelationEquip
=
new
JgChangeRegistrationUnitEq
();
JgChangeRegistrationUnit
dto
=
new
JgChangeRegistrationUnit
();
JgChangeRegistrationUnit
dto
=
new
JgChangeRegistrationUnit
();
...
@@ -439,7 +483,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -439,7 +483,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
dto
.
setApplyNo
(
applyNo
);
dto
.
setApplyNo
(
applyNo
);
dto
.
setApplyDate
(
new
Date
());
dto
.
setApplyDate
(
new
Date
());
if
(
SUBMIT_TYPE_FLOW
.
equals
(
submitType
))
{
if
(
SUBMIT_TYPE_FLOW
.
equals
(
submitType
))
{
dto
.
setNextExecutorIds
(
String
.
join
(
","
,
roleListSecond
)
);
dto
.
setNextExecutorIds
(
finalNextExecutorRoleIds
);
dto
.
setInstanceStatus
(
String
.
join
(
","
,
roleListFirst
));
dto
.
setInstanceStatus
(
String
.
join
(
","
,
roleListFirst
));
dto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
dto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
dto
.
setStatus
(
taskName
[
0
]);
dto
.
setStatus
(
taskName
[
0
]);
...
@@ -643,16 +687,18 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -643,16 +687,18 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
// 待调整
// 待调整
taskCode
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getKey
();
taskCode
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getKey
();
JgChangeRegistrationUnit
JgChangeRegistrationUnit
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
JgChangeRegistrationUnit
JgChangeRegistrationUnit
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
JgChangeRegistrationUnit
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
task
Name
[
0
]
).
getRollBack
());
JgChangeRegistrationUnit
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
task
Code
).
getRollBack
());
JgChangeRegistrationUnit
.
setPromoter
(
""
);
JgChangeRegistrationUnit
.
setPromoter
(
""
);
JgChangeRegistrationUnit
.
setNextTaskId
(
nextTaskId
);
JgChangeRegistrationUnit
.
setNextTaskId
(
nextTaskId
);
JgChangeRegistrationUnit
.
setNextExecutorIds
(
String
.
join
(
","
,
roleListNext
));
JgChangeRegistrationUnit
.
setNextExecutorIds
(
String
.
join
(
","
,
roleListNext
));
JgChangeRegistrationUnitMapper
.
updateById
(
JgChangeRegistrationUnit
);
JgChangeRegistrationUnitMapper
.
updateById
(
JgChangeRegistrationUnit
);
// 删除待办
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
JgChangeRegistrationUnit
));
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
JgChangeRegistrationUnit
));
jsonObject
.
put
(
"nextTaskId"
,
JgChangeRegistrationUnit
.
getNextTaskId
());
jsonObject
.
put
(
"nextTaskId"
,
JgChangeRegistrationUnit
.
getNextTaskId
());
jsonObject
.
put
(
"nextExecuteUser"
,
JgChangeRegistrationUnit
.
getNextExecutorIds
());
jsonObject
.
put
(
"nextExecuteUser"
,
JgChangeRegistrationUnit
.
getNextExecutorIds
());
jsonObject
.
put
(
"taskType"
,
BusinessTypeEnum
.
JG_NAME_CHANGE_REGISTRATION
.
getCode
());
jsonObject
.
put
(
"taskType"
,
BusinessTypeEnum
.
JG_COMPANY_CHANGE_REGISTRATION
.
getCode
());
jsonObject
.
put
(
"flowStatus"
,
this
.
getTaskCodeByName
(
JgChangeRegistrationUnit
.
getStatus
()));
jsonObject
.
put
(
"flowStatusLabel"
,
JgChangeRegistrationUnit
.
getStatus
());
commonServiceImpl
.
rollbackTask
(
noticeDto
.
getInstanceId
(),
jsonObject
);
commonServiceImpl
.
rollbackTask
(
noticeDto
.
getInstanceId
(),
jsonObject
);
}
}
...
@@ -678,8 +724,8 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -678,8 +724,8 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
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
())
&&
(
jgChangeRegistrationUnit
.
get
Audit
Status
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getReject
())
||
(
jgChangeRegistrationUnit
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getReject
())
||
jgChangeRegistrationUnit
.
get
Audit
Status
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getRollBack
())))
{
jgChangeRegistrationUnit
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getRollBack
())))
{
map
.
put
(
"approvalStatus"
,
"提交"
);
map
.
put
(
"approvalStatus"
,
"提交"
);
}
}
task
.
setVariable
(
map
);
task
.
setVariable
(
map
);
...
@@ -755,18 +801,25 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -755,18 +801,25 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
jgChangeRegistrationUnit
.
setInstanceStatus
(
String
.
join
(
","
,
roleList
));
jgChangeRegistrationUnit
.
setInstanceStatus
(
String
.
join
(
","
,
roleList
));
}
}
jgChangeRegistrationUnit
.
setPromoter
(
userId
);
jgChangeRegistrationUnit
.
setPromoter
(
userId
);
jgChangeRegistrationUnit
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
taskName
[
0
]).
getPass
());
jgChangeRegistrationUnit
.
setNextTaskId
(
nextTaskId
);
jgChangeRegistrationUnit
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
taskCode
).
getPass
());
executeOneStep
(
jgChangeRegistrationUnit
,
taskName1
,
nextUserIds
,
op
);
}
executeOneStep
(
jgChangeRegistrationUnit
,
taskName1
,
nextUserIds
,
op
);
}
}
else
{
}
else
{
jgChangeRegistrationUnit
.
setPromoter
(
""
);
jgChangeRegistrationUnit
.
setPromoter
(
""
);
jgChangeRegistrationUnit
.
setNextExecutorIds
(
String
.
join
(
","
,
roleList
));
jgChangeRegistrationUnit
.
setNextExecutorIds
(
String
.
join
(
","
,
roleList
));
jgChangeRegistrationUnit
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
taskName
[
0
]).
getReject
());
jgChangeRegistrationUnit
.
setNextTaskId
(
nextTaskId
);
jgChangeRegistrationUnit
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
taskCode
).
getReject
());
executeOneStep
(
jgChangeRegistrationUnit
,
taskName1
,
nextUserIds
,
op
);
executeOneStep
(
jgChangeRegistrationUnit
,
taskName1
,
nextUserIds
,
op
);
}
}
JgChangeRegistrationUnitMapper
.
updateById
(
jgChangeRegistrationUnit
);
JgChangeRegistrationUnitMapper
.
updateById
(
jgChangeRegistrationUnit
);
// }
// }
}
}
private
Integer
getTaskCodeByName
(
String
auditStatus
)
{
return
commonServiceImpl
.
getDictionaryCodeByName
(
auditStatus
);
}
/**
/**
* 修改各类告知列表,置为废弃
* 修改各类告知列表,置为废弃
*
*
...
@@ -925,42 +978,73 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -925,42 +978,73 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
});
});
}
}
// private void executeOneStep(JgChangeRegistrationUnit jgChangeRegistrationName, String taskName, String nextUserIds, String operate) {
// // 先更新之前的待办
// TaskV2Model taskV2Model = updateTaskModel(jgChangeRegistrationName, operate);
// TaskModelDto taskModelDto = new TaskModelDto();
// taskModelDto.setTaskDesc("");
// taskModelDto.setTaskContent(this.buildTaskContent(jgChangeRegistrationName));
// taskV2Model.setTaskName(taskName);
// taskModelDto.setTaskDesc("");
// taskModelDto.setTaskCode(jgChangeRegistrationName.getApplyNo());
// taskV2Model.setExecuteUserIds(nextUserIds);
// taskV2Model.setRelationId(jgChangeRegistrationName.getInstanceId());
// taskV2Model.setTaskStatus(this.getTaskStatusByName(jgChangeRegistrationName.getAuditStatus()));
// taskV2Model.setTaskStatusLabel(jgChangeRegistrationName.getAuditStatus());
// taskV2Model.setTaskType(BusinessTypeEnum.JG_COMPANY_CHANGE_REGISTRATION.getCode());
// taskModelDto.setStartUser(jgChangeRegistrationName.getCreateUserName());
// taskV2Model.setTaskTypeLabel(BusinessTypeEnum.JG_COMPANY_CHANGE_REGISTRATION.getName());
// taskModelDto.setStartDate(jgChangeRegistrationName.getCreateDate());
// taskModelDto.setStartUserId(jgChangeRegistrationName.getCreateUserId());
// taskModelDto.setStartUserCompanyName(jgChangeRegistrationName.getUseUnitName());
// taskModelDto.setExecuteUserIds(nextUserIds);
// TaskModelDto modelDto = new TaskModelDto();
// BeanUtil.copyProperties(taskV2Model,modelDto);
// modelDto.setNextExecuteUser(jgChangeRegistrationName.getNextExecutorIds());
// modelDto.setModel(jgChangeRegistrationName);
// // 再插入新代办、数据待定
// commonServiceImpl.buildTaskModel(Collections.singletonList(modelDto));
// }
private
void
executeOneStep
(
JgChangeRegistrationUnit
jgChangeRegistrationName
,
String
taskName
,
String
nextUserIds
,
String
operate
)
{
private
void
executeOneStep
(
JgChangeRegistrationUnit
jgChangeRegistrationName
,
String
taskName
,
String
nextUserIds
,
String
operate
)
{
// 先更新之前的待办
// 先更新之前的待办
TaskV2Model
taskV2Model
=
updateTaskModel
(
jgChangeRegistrationName
,
operate
);
TaskV2Model
taskV2Model
=
updateTaskModel
(
jgChangeRegistrationName
,
operate
);
TaskModelDto
taskModelDto
=
new
TaskModelDto
();
taskV2Model
.
setTaskDesc
(
""
);
taskModelDto
.
setTaskDesc
(
""
);
taskModelDto
.
setTaskContent
(
this
.
buildTaskContent
(
jgChangeRegistrationName
));
taskV2Model
.
setTaskName
(
taskName
);
taskV2Model
.
setTaskName
(
taskName
);
task
ModelDto
.
setTaskDesc
(
""
);
task
V2Model
.
setTaskDesc
(
""
);
task
ModelDto
.
setTaskCode
(
jgChangeRegistrationName
.
getApplyNo
());
task
V2Model
.
setTaskCode
(
jgChangeRegistrationName
.
getApplyNo
());
taskV2Model
.
setExecuteUserIds
(
nextUserIds
);
taskV2Model
.
setExecuteUserIds
(
nextUserIds
);
taskV2Model
.
setRelationId
(
jgChangeRegistrationName
.
getInstanceId
());
taskV2Model
.
setRelationId
(
jgChangeRegistrationName
.
getInstanceId
());
taskV2Model
.
setTaskStatus
(
this
.
getTaskStatusByName
(
jgChangeRegistrationName
.
getAuditStatus
()));
FlowStatusEnum
flowStatusEnum
=
this
.
getTaskStatus
(
operate
);
taskV2Model
.
setTaskStatusLabel
(
jgChangeRegistrationName
.
getAuditStatus
());
taskV2Model
.
setTaskStatus
(
this
.
getTaskStatusByName
(
jgChangeRegistrationName
.
getStatus
()));
taskV2Model
.
setTaskType
(
BusinessTypeEnum
.
JG_COMPANY_CHANGE_REGISTRATION
.
getCode
());
taskV2Model
.
setTaskStatusLabel
(
jgChangeRegistrationName
.
getStatus
());
taskModelDto
.
setStartUser
(
jgChangeRegistrationName
.
getCreateUserName
());
taskV2Model
.
setFlowStatus
(
this
.
getTaskStatusByName
(
jgChangeRegistrationName
.
getStatus
()));
taskV2Model
.
setTaskTypeLabel
(
BusinessTypeEnum
.
JG_COMPANY_CHANGE_REGISTRATION
.
getName
());
taskV2Model
.
setFlowStatusLabel
(
jgChangeRegistrationName
.
getStatus
());
taskModelDto
.
setStartDate
(
jgChangeRegistrationName
.
getCreateDate
());
// taskV2Model.setTaskType(BusinessTypeEnum.JG_COMPANY_CHANGE_REGISTRATION.getCode());
taskModelDto
.
setStartUserId
(
jgChangeRegistrationName
.
getCreateUserId
());
// taskV2Model.setStartUser(jgChangeRegistrationName.getCreateUserName());
taskModelDto
.
setStartUserCompanyName
(
jgChangeRegistrationName
.
getUseUnitName
());
// taskV2Model.setTaskTypeLabel(BusinessTypeEnum.JG_COMPANY_CHANGE_REGISTRATION.getName());
taskModelDto
.
setExecuteUserIds
(
nextUserIds
);
// taskV2Model.setStartDate(jgChangeRegistrationName.getCreateDate());
// taskV2Model.setStartUserId(jgChangeRegistrationName.getCreateUserId());
// taskV2Model.setStartUserCompanyName(jgChangeRegistrationName.getUseUnitName());
taskV2Model
.
setExecuteUserIds
(
nextUserIds
);
TaskModelDto
modelDto
=
new
TaskModelDto
();
TaskModelDto
modelDto
=
new
TaskModelDto
();
BeanUtil
.
copyProperties
(
taskV2Model
,
modelDto
);
BeanUtil
.
copyProperties
(
taskV2Model
,
modelDto
);
modelDto
.
setNextExecuteUser
(
jgChangeRegistrationName
.
getNextExecutorIds
());
modelDto
.
setNextExecuteUser
(
jgChangeRegistrationName
.
getNextExecutorIds
());
modelDto
.
setModel
(
jgChangeRegistrationName
);
modelDto
.
setModel
(
jgChangeRegistrationName
);
// 再插入新代办、数据待定
// 再插入新代办、数据待定
commonServiceImpl
.
buildTaskModel
(
Collections
.
singletonList
(
modelDto
));
commonServiceImpl
.
buildTaskModel
(
Collections
.
singletonList
(
modelDto
));
}
}
private
TaskV2Model
updateTaskModel
(
JgChangeRegistrationUnit
jgChangeRegistrationName
,
String
operate
)
{
private
TaskV2Model
updateTaskModel
(
JgChangeRegistrationUnit
jgChangeRegistrationName
,
String
operate
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
FlowStatusEnum
flowStatusEnum
=
this
.
getTaskStatus
(
operate
);
FlowStatusEnum
flowStatusEnum
=
this
.
getTaskStatus
(
operate
);
params
.
put
(
"relationId"
,
jgChangeRegistrationName
.
getInstanceId
());
params
.
put
(
"relationId"
,
jgChangeRegistrationName
.
getInstanceId
());
params
.
put
(
"taskStatus"
,
flowStatusEnum
.
getCode
());
params
.
put
(
"taskStatus"
,
flowStatusEnum
.
getCode
());
params
.
put
(
"taskStatusLabel"
,
flowStatusEnum
.
getName
());
params
.
put
(
"taskStatusLabel"
,
flowStatusEnum
.
getName
());
params
.
put
(
"flowStatus"
,
this
.
getTaskStatusByName
(
jgChangeRegistrationName
.
getAuditStatus
()));
params
.
put
(
"flowStatus"
,
this
.
getTaskStatusByName
(
jgChangeRegistrationName
.
getStatus
()));
params
.
put
(
"flowStatusLabel"
,
jgChangeRegistrationName
.
getAuditStatus
());
params
.
put
(
"flowStatusLabel"
,
jgChangeRegistrationName
.
getStatus
());
params
.
put
(
"model"
,
jgChangeRegistrationName
);
return
commonServiceImpl
.
updateTaskModel
(
params
);
return
commonServiceImpl
.
updateTaskModel
(
params
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
c7b649ee
...
@@ -93,13 +93,13 @@
...
@@ -93,13 +93,13 @@
"type"
:
"109"
,
"type"
:
"109"
,
"pageType"
:
"look"
,
"pageType"
:
"look"
,
"name"
:
"单位变更登记"
,
"name"
:
"单位变更登记"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=173
9250036920840194
&roleIds={roleIds}&userId={userId}&pageType=look"
"url"
:
"/mixuap?appId=1742358052905971713&id=173
8095060211232770
&roleIds={roleIds}&userId={userId}&pageType=look"
},
},
{
{
"type"
:
"109"
,
"type"
:
"109"
,
"pageType"
:
"edit"
,
"pageType"
:
"edit"
,
"name"
:
"单位变更登记"
,
"name"
:
"单位变更登记"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=173
9250036920840194
&roleIds={roleIds}&userId={userId}&pageType=edit"
"url"
:
"/mixuap?appId=1742358052905971713&id=173
8095060211232770
&roleIds={roleIds}&userId={userId}&pageType=edit"
},
},
{
{
"type"
:
"110"
,
"type"
:
"110"
,
...
...
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