caipin %!s(int64=4) %!d(string=hai) anos
pai
achega
97fd8a2732
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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