|
@@ -870,7 +870,7 @@ public class WbsTreeServiceImpl extends BaseServiceImpl<WbsTreeMapper, WbsTree>
|
|
|
List<String> names = contractInfoArrayList.stream().distinct().map(ContractInfo::getContractName).collect(Collectors.toList());
|
|
|
if (wbsTreeContractList.size() > 0) {
|
|
|
String join = StringUtils.join(names, ",");
|
|
|
- throw new ServiceException(StringUtil.format("当前项目wbs树的节点已被 {} 引用中,删除失败", join));
|
|
|
+ return R.fail(400, StringUtil.format("当前项目wbs树的节点已被 {} 引用中,删除失败", join));
|
|
|
}
|
|
|
}
|
|
|
|