caipin 4 years ago
parent
commit
5417b1ae7a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/contract_section_tree_service.go

+ 2 - 2
services/contract_section_tree_service.go

@@ -107,10 +107,10 @@ func (s *contractService) SectionAdd(sectionData *viewmodels.TreeSectionContract
 	attribution := fmt.Sprintf("%s%d-", sectionFather.Attribution, sectionFather.Serial)
 	code := fmt.Sprintf("%s%d", attribution, serial)
 	// 2-3获得新增ID
-	lastId := s.treeContractDao.GetLastId()
+	// lastId := s.treeContractDao.GetLastId()
 	// 新增项目节
 	sectionCM := &models.CmTreeContracts{}
-	sectionCM.Id = lastId.Id
+	// sectionCM.Id = lastId.Id
 	sectionCM.TreeType = treeType
 	sectionCM.ParentId = sectionFather.TreeId
 	sectionCM.Name = sectionData.Name