Commit 123d2e83 authored by 韩桐桐's avatar 韩桐桐

fix(jg):车用气瓶撤回

parent a2a9bc8e
......@@ -375,6 +375,8 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
jsonObject.put("flowStatus", this.getTaskCodeByName(vehicleInfo.getStatus()));
jsonObject.put("flowStatusLabel", vehicleInfo.getStatus());
jsonObject.put("maintenanceContract", null);// 不传合同照片附件信息//TODO
// 判断撤回后当前的节点,如果当前节点为提交节点则页面可编辑
jsonObject.put("pageType", this.getPageTypeByCurrentNode(vehicleInfo.getStatus()));
commonService.rollbackTask(instanceId, jsonObject);
// redis流程实时数据更新
......@@ -388,6 +390,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
}
}
private String getPageTypeByCurrentNode(String auditStatus) {
if (WorkFlowStatusEnum.USE_SUBMIT.getPass().equals(auditStatus) || WorkFlowStatusEnum.USE_SUBMIT.getReject().equals(auditStatus) || WorkFlowStatusEnum.USE_SUBMIT.getRollBack().equals(auditStatus)) {
return "edit";
} else {
return "look";
}
}
public InstanceRuntimeData buildInstanceRuntimeData(JgVehicleInformation jgVehicleInformation) {
return InstanceRuntimeData.builder()
.nextExecuteUserIds(jgVehicleInformation.getNextExecuteUserIds())
......
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