修改:流程修改v2.0
This commit is contained in:
parent
57d173a71d
commit
7ece605c71
@ -360,7 +360,7 @@ public class BenchmarkingReportServiceImpl implements BenchmarkingReportService
|
||||
// 待办环节修改
|
||||
bd.getBusinessDatabase()
|
||||
.eq("document_no", flow.getId())
|
||||
.update("node", "已完成")
|
||||
.update("current_node", "已完成")
|
||||
.doUpdate(TodoTaskPojo.class);
|
||||
} else {
|
||||
flow.setCurrentNode(1);
|
||||
@ -406,8 +406,10 @@ public class BenchmarkingReportServiceImpl implements BenchmarkingReportService
|
||||
list.add(todoTask);
|
||||
}
|
||||
}
|
||||
if (!list.isEmpty()) {
|
||||
bd.getBusinessDatabase().doBatchInsert(list);
|
||||
}
|
||||
}
|
||||
|
||||
private void cancelProcess(ApprovalFlow flow, String status, String userId) {
|
||||
flow.setFlowStatus(status);
|
||||
@ -427,7 +429,7 @@ public class BenchmarkingReportServiceImpl implements BenchmarkingReportService
|
||||
|
||||
bd.getBusinessDatabase()
|
||||
.eq("document_no", flow.getId())
|
||||
.update("node", "已拒绝")
|
||||
.update("current_node", "已拒绝")
|
||||
.doUpdate(TodoTaskPojo.class);
|
||||
// 清除所有待办
|
||||
clearAllTodo(flow, userId);
|
||||
|
||||
@ -299,7 +299,7 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
|
||||
|
||||
bd.getBusinessDatabase()
|
||||
.eq("document_no", flow.getId())
|
||||
.update("node", "已拒绝")
|
||||
.update("current_node", "已拒绝")
|
||||
.doUpdate(TodoTaskPojo.class);
|
||||
// 清除所有待办
|
||||
clearAllTodo(flow);
|
||||
@ -352,7 +352,7 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
|
||||
// 待办环节修改
|
||||
bd.getBusinessDatabase()
|
||||
.eq("document_no", flow.getId())
|
||||
.update("node", "已完成")
|
||||
.update("current_node", "已完成")
|
||||
.doUpdate(TodoTaskPojo.class);
|
||||
// 更新机型版本
|
||||
// dataEntryEngineModelService.updateModelForNewVersion();
|
||||
@ -393,7 +393,7 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
|
||||
.eq("owner_id", person).doQueryFirst(TodoTaskPojo.class);
|
||||
if (todoTaskPojo != null) {
|
||||
todoTaskPojo.setCurrentNode(node.getNodeName());
|
||||
todoTaskPojo.setCurrentProcessor(JSON.toJSONString(node.getAssignees()));
|
||||
todoTaskPojo.setCurrentProcessor(node.getAssignees());
|
||||
bd.getBusinessDatabase().doUpdate(todoTaskPojo);
|
||||
} else {
|
||||
TodoTaskPojo todoTask = new TodoTaskPojo();
|
||||
@ -410,12 +410,14 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
|
||||
todoTask.setStatusCode(flow.getFlowStatus());
|
||||
todoTask.setVersionNumber(template.getVersion());
|
||||
todoTask.setOwnerId(person);
|
||||
todoTask.setCurrentProcessor(JSON.toJSONString(node.getAssignees()));
|
||||
todoTask.setCurrentProcessor(node.getAssignees());
|
||||
list.add(todoTask);
|
||||
}
|
||||
}
|
||||
if (!list.isEmpty()) {
|
||||
bd.getBusinessDatabase().doBatchInsert(list);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageQueryResult<TemplateChangeView> getTemplateChanges(ApprovalAndParameterForm form) {
|
||||
@ -562,7 +564,7 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
|
||||
}
|
||||
ApprovalConfigPojo currentNode = bd.getBusinessDatabase()
|
||||
.eq("approval_id", request.getFlowId())
|
||||
.eq("current_node", Integer.valueOf(flow.getCurrentNode()))
|
||||
.eq("current_node", flow.getCurrentNode())
|
||||
.doQueryFirst(ApprovalConfigPojo.class);
|
||||
if ("RETURN".equals(request.getResult())) {
|
||||
ApprovalRecord record = new ApprovalRecord();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user