fix(88496): 转办问题
This commit is contained in:
+11
-2
@@ -96,11 +96,20 @@ public class StandardInterpretFlow implements WorkCenterService {
|
||||
@Override
|
||||
public void handleTransfer(ProcessAll processAll, ProcessApprovalRecord processApprovalRecord,
|
||||
String toUserId, String userId) {
|
||||
String node = processApprovalRecord.getNodeId();
|
||||
ProcessAllService processAllService = SpringContextUtil.getBean(ProcessAllService.class);
|
||||
// 更新流程人员变量
|
||||
// processAllService.specialTransfer(processAll, processApprovalRecord, toUserId, userId);
|
||||
processAllService.specialTransfer(processAll, processApprovalRecord, toUserId, userId);
|
||||
// 标准主解读人分发(分发)
|
||||
if (StandardInterpretCommon.MASTER_INTERPRET_DISTRIBUTE.equals(node)){
|
||||
ProcessStandardInterpretService processStandardInterpretService =
|
||||
SpringContextUtil.getBean(ProcessStandardInterpretService.class);
|
||||
processStandardInterpretService.update(
|
||||
new LambdaUpdateWrapper<ProcessStandardInterpret>()
|
||||
.eq(ProcessStandardInterpret::getProjectId, processAll.getProjectId())
|
||||
.set(ProcessStandardInterpret::getMasterInterpretId, toUserId));
|
||||
}
|
||||
// 解读人填写信息(分发)
|
||||
String node = processApprovalRecord.getNodeId();
|
||||
if (StandardInterpretCommon.INTERPRETING_PEOPLE_FILLOUT.equals(node)){
|
||||
StandardInterpretFlowService standardInterpretFlowService =
|
||||
SpringContextUtil.getBean(StandardInterpretFlowService.class);
|
||||
|
||||
+6
@@ -383,6 +383,7 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
|
||||
new LambdaQueryWrapper<ProcessStandardInterpret>()
|
||||
.eq(ProcessStandardInterpret::getProjectId, processAlls.getProjectId()));
|
||||
if (!Objects.isNull(processStandardInterpret)){
|
||||
variables.put(StandardInterpretCommon.MASTER_INTERPRET, processStandardInterpret.getMasterInterpretId());
|
||||
String id = processStandardInterpret.getId();
|
||||
LambdaQueryWrapper<ProcessStandardInterpretClause> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(ProcessStandardInterpretClause::getStandardInterpretId, id);
|
||||
@@ -443,6 +444,11 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
|
||||
|
||||
}
|
||||
}else if (StandardInterpretCommon.AUTO_TASK_2.equals(taskDefinitionKey)){
|
||||
// 获取主流程的主解读人id
|
||||
ProcessStandardInterpret processStandardInterpret = processStandardInterpretService.getOne(
|
||||
new LambdaQueryWrapper<ProcessStandardInterpret>()
|
||||
.eq(ProcessStandardInterpret::getProjectId, processAlls.getProjectId()));
|
||||
variables.put(StandardInterpretCommon.MASTER_INTERPRET, processStandardInterpret.getMasterInterpretId());
|
||||
StandardInterpretFlowDTO standardInterpretFlowDTO = new StandardInterpretFlowDTO();
|
||||
// 流程信息
|
||||
String newSnowFlake = String.valueOf(SnowflakeUtils.snowflake());
|
||||
|
||||
Reference in New Issue
Block a user