盛虹 人员简历 工作经历时间轴排序
This commit is contained in:
parent
971dff103d
commit
c4985d0ef2
|
|
@ -201,6 +201,23 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|||
.position(jobTitlesComInfo.getJobTitlesname(Util.null2String(rs.getString("zw"))))
|
||||
.build());
|
||||
}
|
||||
|
||||
workInfoList.sort((w1, w2) -> {
|
||||
String s1 = w1.getStartDate();
|
||||
String s2 = w2.getStartDate();
|
||||
if (s1.isEmpty() && s2.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
if (s1.isEmpty()) {
|
||||
return 1;
|
||||
}
|
||||
if (s2.isEmpty()) {
|
||||
return -1;
|
||||
}
|
||||
return s1.compareTo(s2);
|
||||
});
|
||||
|
||||
|
||||
return workInfoList;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue