|
@@ -756,6 +756,15 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
try {
|
|
|
return compareTo(split1, split2);
|
|
|
} catch (NumberFormatException e) {
|
|
|
+ try {
|
|
|
+ if (split1[1].contains("_PL_") || split2[1].contains("_PL_")) {
|
|
|
+ split1 = split1[1].split("_PL_");
|
|
|
+ split2 = split2[1].split("_PL_");
|
|
|
+ return compareTo(split1, split2);
|
|
|
+ }
|
|
|
+ } catch (NumberFormatException e1) {
|
|
|
+ return name1.compareTo(name2);
|
|
|
+ }
|
|
|
// 如果无法将字符串转换为数字,则按照字符串比较
|
|
|
return name1.compareTo(name2);
|
|
|
}
|