caipin hace 4 años
padre
commit
2f40ae14cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/contract_section_tree_service.go

+ 1 - 1
services/contract_section_tree_service.go

@@ -111,7 +111,7 @@ func (s *contractService) ContractSectionAdd(sectionData *viewmodels.TreeSection
 	// }
 	// 1-2 项目节是否有合同
 	if sectionFather.ContractId != 0 {
-		return nil, errors.New("该项目节已存在合同")
+		return nil, errors.New("合同项禁止添加子项")
 	}
 
 	// 2 获得最大序号