caipin 4 年之前
父節點
當前提交
97fd8a2732
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/contract_section_tree_service.go

+ 1 - 1
services/contract_section_tree_service.go

@@ -108,7 +108,7 @@ func (s *contractService) SectionAdd(sectionData *viewmodels.TreeSectionContract
 	code := fmt.Sprintf("%s%d", attribution, serial)
 	// 新增项目节
 	sectionCM := &models.CmTreeContracts{}
-	sectionCM.TreeId = treeType
+	sectionCM.TreeType = treeType
 	sectionCM.ParentId = sectionFather.TreeId
 	sectionCM.Name = sectionData.Name
 	sectionCM.Depth = sectionFather.Depth + 1