|
@@ -628,7 +628,11 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
if (sort1 == null && sort2 == null) {
|
|
|
// 两个 sort 都为空,认为相等
|
|
|
return 0;
|
|
|
- } else if (sort1 == null) {
|
|
|
+ }else if(sort1!=null&&sort2!=null&&sort1==0&&sort2==0){
|
|
|
+ // 两个 sort 都不为空,并且都是0
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ else if (sort1 == null) {
|
|
|
// 第一个 sort 为空,排在后面
|
|
|
return 1;
|
|
|
} else if (sort2 == null) {
|