|
@@ -37,9 +37,10 @@ func (s *contractService) GetSecionTreeNotContract(bidsectionId int, projectId i
|
|
|
return Node
|
|
|
}
|
|
|
|
|
|
-// 获得项目节树和孩子们下的合同数据
|
|
|
+// 获得项目节树和孩子们下的合同数据-未使用
|
|
|
func (s *contractService) GetSectionTreeContract(attribution string, bidsectionId int, projectId int, treeType int) []*viewmodels.Contracts {
|
|
|
s.treeContractDao.GetAttribution(attribution, bidsectionId, projectId, treeType)
|
|
|
+
|
|
|
return nil
|
|
|
}
|
|
|
|
|
@@ -215,7 +216,7 @@ func (s *contractService) SectionDelete(treeId int, bidsectionId int, projectId
|
|
|
// return errors.New("请在项目节第三层开始编辑")
|
|
|
// }
|
|
|
// 1-2 有合同的不能编辑(包含孩子节点)
|
|
|
- contractList := s.GetSectionTreeContract(section.Attribution, section.BidsectionId, section.ProjectId, treeType)
|
|
|
+ contractList := s.treeContractDao.GetAttributionContract(section.Attribution, section.ProjectId, section.BidsectionId, treeType)
|
|
|
if len(contractList) != 0 {
|
|
|
return errors.New("该项目节存在合同")
|
|
|
}
|