|
@@ -145,7 +145,14 @@ public class RecordsServiceImpl implements RecordsService {
|
|
|
//学校信息
|
|
|
List<SchoolDetailDO> schoolList = schoolDetailDOMapper.selectList(new LambdaQueryWrapperX<SchoolDetailDO>().eq(SchoolDetailDO::getUserId, userId));
|
|
|
if (CollectionUtil.isNotEmpty(schoolList)) {
|
|
|
- vo.setSchoolList(schoolList);
|
|
|
+ List<SchoolDetailDO> schools = schoolList.stream().sorted(
|
|
|
+ (o1, o2) -> {
|
|
|
+ int b1 = Integer.parseInt(o1.getXl());
|
|
|
+ int b2 = Integer.parseInt(o2.getXl());
|
|
|
+ return Integer.compare(b1, b2);
|
|
|
+ }
|
|
|
+ ).collect(Collectors.toList());
|
|
|
+ vo.setSchoolList(schools);
|
|
|
}
|
|
|
|
|
|
//工作经历
|