浏览代码

更新规则链管理接口

liuxiulin 2 年之前
父节点
当前提交
b00417b079
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/knowoapi/services/rule_chain.go

+ 2 - 2
services/knowoapi/services/rule_chain.go

@@ -96,8 +96,8 @@ func (a ruleChainService) create(ruleChain *models.RuleChain) error {
 				RecordId:     guid.S(),
 				RuleChainId:  ruleChain.RecordId,
 				FromID:       nodeMap[v.Source.Cell].RecordId,
-				FromType:     nodeMap[v.Target.Cell].Type,
-				ToID:         nodeMap[v.Source.Cell].RecordId,
+				FromType:     nodeMap[v.Source.Cell].Type,
+				ToID:         nodeMap[v.Target.Cell].RecordId,
 				ToType:       nodeMap[v.Target.Cell].Type,
 				RelationType: v.Data.Label,
 			})