|
@@ -386,7 +386,6 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
if (resultNow.size() <= 0) {
|
|
|
throw new ServiceException("请选择一个工程类别进行匹配导入");
|
|
|
}
|
|
|
-
|
|
|
//匹配对应工程类别修改对应合同段节点名称
|
|
|
return this.updateContractNodeNames(resultNow, contractId, isSplicingNumber);
|
|
|
}
|
|
@@ -454,7 +453,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
//获取当前合同段树
|
|
|
List<WbsTreeContractVO> wbsTreeContractVOS = contractInfoMapper.tree2(null, null, contractId, null, null);
|
|
|
if (wbsTreeContractVOS.size() <= 0) {
|
|
|
- throw new ServiceException("请从项目级中分配合同段wbs划分模板");
|
|
|
+ throw new ServiceException("未查询到当前合同段的wbs树,请先配置该合同的合同段wsb树");
|
|
|
}
|
|
|
|
|
|
//构造resultList
|
|
@@ -466,7 +465,6 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
String v1 = value1.replaceAll(str, "");
|
|
|
map.forEach((k2, value2) -> {
|
|
|
String v2 = value2.replaceAll(str, "");
|
|
|
-
|
|
|
if ("1".equals(k1) && "2".equals(k2)) {
|
|
|
maps.put(1, v1 + ":::" + v2);
|
|
|
} else if ("3".equals(k1) && "4".equals(k2)) {
|
|
@@ -516,16 +514,16 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
|
|
|
} else if ("9".equals(k1) && "10".equals(k2)) {
|
|
|
String s4 = "";
|
|
|
- if (StringUtils.isNotEmpty(v2)) {
|
|
|
- String s = maps.get(4);
|
|
|
- if (isSplicingNumber == 1) {
|
|
|
+ if (isSplicingNumber == 1) {
|
|
|
+ if (StringUtils.isNotEmpty(v2)) {
|
|
|
+ String s = maps.get(4);
|
|
|
if (StringUtils.isEmpty(s.replaceAll(":::", ""))) {
|
|
|
s = maps.get(3);
|
|
|
if (StringUtils.isEmpty(s.replaceAll(":::", ""))) {
|
|
|
s = maps.get(2);
|
|
|
- }
|
|
|
- if (StringUtils.isEmpty(s.replaceAll(":::", ""))) {
|
|
|
- s = maps.get(1);
|
|
|
+ if (StringUtils.isEmpty(s.replaceAll(":::", ""))) {
|
|
|
+ s = maps.get(1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(s.replaceAll(":::", ""))) {
|