From 71bf81bff5264056b4f9fe7f19f1aa676ed29bef Mon Sep 17 00:00:00 2001 From: dxfeng Date: Thu, 20 Nov 2025 14:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E8=82=B2=E7=BB=8F=E5=8E=86=20?= =?UTF-8?q?=E2=80=9C=E8=87=B3=E4=BB=8A=E2=80=9D=E6=97=B6=E9=97=B4=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ResumeIdentifyServiceImpl.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/com/engine/resumestorage/service/impl/ResumeIdentifyServiceImpl.java b/src/com/engine/resumestorage/service/impl/ResumeIdentifyServiceImpl.java index 71d32ad..1a7d971 100644 --- a/src/com/engine/resumestorage/service/impl/ResumeIdentifyServiceImpl.java +++ b/src/com/engine/resumestorage/service/impl/ResumeIdentifyServiceImpl.java @@ -432,6 +432,8 @@ public class ResumeIdentifyServiceImpl extends Service implements ResumeIdentify } if (obj.containsKey("学业信息")) { + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd"); + JSONArray jyjl = obj.getJSONArray("学业信息"); List> studyList = new ArrayList<>(); if (null != jyjl && jyjl.size() > 0) { @@ -452,14 +454,19 @@ public class ResumeIdentifyServiceImpl extends Service implements ResumeIdentify // 毕业时间 String[] split = jdsq.split("-"); if (split.length == 2) { - studyMap.put("bysj", split[1]); + String bysj = split[1]; + try { + dateFormat.parse(bysj); + } catch (ParseException e) { + bysj = ""; + } + studyMap.put("bysj", bysj); } studyList.add(studyMap); } } detailMap.put("jyjl", studyList); if (CollectionUtils.isNotEmpty(studyList)) { - SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd"); List> sortedList = studyList.stream() .sorted((map1, map2) -> { String dateStr1 = map1.get("bysj");