fix(标准征求意见流程): 定时任务自动添加“无意见”数据导致排序问题修复
This commit is contained in:
+5
@@ -1,6 +1,7 @@
|
||||
package com.jero.modules.laws.consultation.common;
|
||||
|
||||
import com.jero.modules.activiti.process.fb.entity.ProcessFbConsultationList;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
@@ -16,6 +17,10 @@ public class DirectoryComparator implements Comparator<ProcessFbConsultationList
|
||||
String sortNumber1 = dir1.getChapterNumber();
|
||||
String sortNumber2 = dir2.getChapterNumber();
|
||||
|
||||
if(StringUtils.isBlank(sortNumber1) || StringUtils.isBlank(sortNumber2)){
|
||||
return 0;
|
||||
}
|
||||
|
||||
String[] parts1 = sortNumber1.split("\\.");
|
||||
String[] parts2 = sortNumber2.split("\\.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user