工作流录入 根据id查询方法增加

This commit is contained in:
pixel
2020-10-27 18:59:51 +08:00
parent 4e514dc83e
commit bf21fec50e
9 changed files with 172 additions and 298 deletions

View File

@@ -58,7 +58,7 @@ func UpdateWorkflowProcess(workflowProcess *model.WorkflowProcess) (err error) {
// @return WorkflowProcess WorkflowProcess
func GetWorkflowProcess(id string) (err error, workflowProcess model.WorkflowProcess) {
err = global.GVA_DB.Where("id = ?", id).First(&workflowProcess).Error
err = global.GVA_DB.Preload("Nodes").Preload("Nodes.Edges").Where("id = ?", id).First(&workflowProcess).Error
return
}