|
|
@ -78,6 +78,7 @@ public class AccessTaskV4ServiceImpl implements AccessTaskV4Service { |
|
|
|
// 步骤1.保存检修任务
|
|
|
|
// 步骤1.保存检修任务
|
|
|
|
this.save(entity); |
|
|
|
this.save(entity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.error("start_task_processV4 : {}",entity.getId()); |
|
|
|
// 步骤2.保存检修材料
|
|
|
|
// 步骤2.保存检修材料
|
|
|
|
this.saveMaterial(entity); |
|
|
|
this.saveMaterial(entity); |
|
|
|
|
|
|
|
|
|
|
@ -183,19 +184,20 @@ public class AccessTaskV4ServiceImpl implements AccessTaskV4Service { |
|
|
|
this.statiticsSave(entity); |
|
|
|
this.statiticsSave(entity); |
|
|
|
// 更新任务数据
|
|
|
|
// 更新任务数据
|
|
|
|
return this.taskService.updateById(entity); |
|
|
|
return this.taskService.updateById(entity); |
|
|
|
}else if(ObjectUtil.isEmpty(variables.get("examine")) && !(Boolean) variables.get("examine")){ |
|
|
|
}else if(ObjectUtil.isNotEmpty(variables.get("examine")) && !(Boolean) variables.get("examine")){ |
|
|
|
String content = "您有一条检修任务待处理!检修任务名称:".concat(entity.getName()) |
|
|
|
String content = "您有一条检修任务待处理!检修任务名称:".concat(entity.getName()) |
|
|
|
.concat(",当前环节:") |
|
|
|
.concat(",当前环节:") |
|
|
|
.concat(processWorkFlowResponse.getTaskName()); |
|
|
|
.concat(processWorkFlowResponse.getTaskName()); |
|
|
|
this.sendMessage(entity,processWorkFlowResponse.getUserId(),content); |
|
|
|
this.sendMessage(entity,processWorkFlowResponse.getUserId(),content); |
|
|
|
return this.taskService.updateById(entity); |
|
|
|
return this.taskService.updateById(entity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.taskService.updateById(entity); |
|
|
|
// 保存检修材料
|
|
|
|
// 保存检修材料
|
|
|
|
this.saveMaterial(entity); |
|
|
|
this.saveMaterial(entity); |
|
|
|
// 保存检修详情
|
|
|
|
// 保存检修详情
|
|
|
|
this.saveDetails(entity); |
|
|
|
this.saveDetails(entity); |
|
|
|
// 发送消息
|
|
|
|
// 发送消息
|
|
|
|
String content = "您有一条检修任务待审批!检修任务名称:".concat(entity.getName()) |
|
|
|
String content = "您有一条检修任务待处理/审核,检修任务名称:".concat(entity.getName()) |
|
|
|
.concat(",当前环节:") |
|
|
|
.concat(",当前环节:") |
|
|
|
.concat(processWorkFlowResponse.getTaskName()); |
|
|
|
.concat(processWorkFlowResponse.getTaskName()); |
|
|
|
this.sendMessage(entity,processWorkFlowResponse.getUserId(),content); |
|
|
|
this.sendMessage(entity,processWorkFlowResponse.getUserId(),content); |
|
|
|