|
@@ -287,7 +287,7 @@ public class WbsTreeContractServiceImpl
|
|
|
//获取当前节点、表的信息
|
|
|
List<WbsTreeContract> wbsTreeContractList = baseMapper.selectTableListInfo(ids1, pawDTO.getWbsId(), pawDTO.getProjectId(), pawDTO.getContractId());
|
|
|
|
|
|
- //获取当前表的pKeyId
|
|
|
+ /*//获取当前表的pKeyId
|
|
|
List<Long> pKeyIds = wbsTreeContractList.stream().filter(f -> f.getType() == 2).
|
|
|
map(WbsTreeContract::getPKeyId).collect(Collectors.toList());
|
|
|
|
|
@@ -309,10 +309,22 @@ public class WbsTreeContractServiceImpl
|
|
|
wbsTreeContractTables.stream().map(WbsTreeContract::getParentId).collect(Collectors.toList()).contains(f.getId()))
|
|
|
.collect(Collectors.toList());
|
|
|
List<String> nodeNames = collect.stream().map(WbsTreeContract::getDeptName).collect(Collectors.toList());
|
|
|
+ */
|
|
|
|
|
|
- if (inFormationQueryInfoList.size() > 0) {
|
|
|
+ List<WbsTreeContract> tableNames = new ArrayList<>();
|
|
|
+ if (wbsTreeContractList.size() > 0) {
|
|
|
+ for (WbsTreeContract wbsTreeContract : wbsTreeContractList) {
|
|
|
+ if (wbsTreeContract.getIsTabPdf() == 2) {
|
|
|
+ tableNames.add(wbsTreeContract);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ List<String> nodeNames = tableNames.stream().map(WbsTreeContract::getDeptName).collect(Collectors.toList());
|
|
|
+
|
|
|
+ if (nodeNames.size() > 0) {
|
|
|
String names = StringUtils.join(nodeNames, " , ");
|
|
|
- throw new ServiceException(StringUtil.format("节点 {} 下存在填报数据,删除失败!", names));
|
|
|
+ throw new ServiceException(StringUtil.format("节点下的 {} 中存在填报数据,删除失败!", names));
|
|
|
}
|
|
|
|
|
|
//删除
|