|
@@ -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
|