Commit 45c87c15 authored by LiuLin's avatar LiuLin

fix(JG):改造告知,设备移交代码提交

parent c54e0b20
...@@ -414,7 +414,6 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto, ...@@ -414,7 +414,6 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
jsonObject.put("taskType", BusinessTypeEnum.JG_EQUIPMENT_HANDOVER.getCode()); jsonObject.put("taskType", BusinessTypeEnum.JG_EQUIPMENT_HANDOVER.getCode());
jsonObject.put("flowStatus", FlowStatusEnum.ROLLBACK.getCode()); jsonObject.put("flowStatus", FlowStatusEnum.ROLLBACK.getCode());
jsonObject.put("flowStatusLabel", FlowStatusEnum.ROLLBACK.getName()); jsonObject.put("flowStatusLabel", FlowStatusEnum.ROLLBACK.getName());
jsonObject.put("sequenceNbr", equipTransfer.getSequenceNbr());
commonService.rollbackTask(equipTransfer.getInstanceId(), jsonObject); commonService.rollbackTask(equipTransfer.getInstanceId(), jsonObject);
} }
} }
......
...@@ -667,14 +667,12 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -667,14 +667,12 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
notice.setNextTaskId(workflowResultDto.getNextTaskId()); notice.setNextTaskId(workflowResultDto.getNextTaskId());
baseMapper.updateById(notice); baseMapper.updateById(notice);
commonService.rollbackTask(notice.getInstanceId(), new JSONObject(MapBuilder.<String, Object>create() JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(notice));
.put("nextTaskId", notice.getNextTaskId()) jsonObject.put("nextExecuteUser", notice.getNextExecuteIds());
.put("nextExecuteUser", notice.getNextExecuteIds()) jsonObject.put("taskType", BusinessTypeEnum.JG_MODIFICATION_NOTIFICATION.getCode());
.put("taskType", BusinessTypeEnum.JG_MODIFICATION_NOTIFICATION.getCode()) jsonObject.put("flowStatus", FlowStatusEnum.ROLLBACK.getCode());
.put("flowStatus", FlowStatusEnum.ROLLBACK.getCode()) jsonObject.put("flowStatusLabel", FlowStatusEnum.ROLLBACK.getName());
.put("flowStatusLabel", FlowStatusEnum.ROLLBACK.getName()) commonService.rollbackTask(notice.getInstanceId(), jsonObject);
.put("pageType", "edit")
.build()));
} }
} }
...@@ -751,6 +749,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg ...@@ -751,6 +749,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
jgReformNotice.setSupervisoryCode(dto.getSupervisoryCode()); jgReformNotice.setSupervisoryCode(dto.getSupervisoryCode());
jgReformNotice.setEquList(dto.getEquList()); jgReformNotice.setEquList(dto.getEquList());
jgReformNotice.setNextTaskId(workflowResultDto.getNextTaskId()); jgReformNotice.setNextTaskId(workflowResultDto.getNextTaskId());
jgReformNotice.setInstanceId(workflowResultDto.getInstanceId());
// 上个代办改为驳回 // 上个代办改为驳回
taskV2Model = this.updateLastTodo(jgReformNotice, FlowStatusEnum.REJECTED); taskV2Model = this.updateLastTodo(jgReformNotice, FlowStatusEnum.REJECTED);
this.createNewTodo(jgReformNotice, workflowResultDto, taskV2Model, FlowStatusEnum.TO_BE_SUBMITTED); this.createNewTodo(jgReformNotice, workflowResultDto, taskV2Model, FlowStatusEnum.TO_BE_SUBMITTED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment