generated from dxfeng/secondev-chapanda-feishu
简历识别 处理日期格式异常情况
This commit is contained in:
parent
5c491aec71
commit
1c5a4f7f2b
|
|
@ -494,6 +494,9 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
* @return
|
||||
*/
|
||||
private String getFormatDate(String dateStr) {
|
||||
if(StringUtils.isBlank(dateStr)){
|
||||
return "";
|
||||
}
|
||||
dateStr = dateStr.replace(".", "-").replace("\\/", "-");
|
||||
if (dateStr.length() == 7) {
|
||||
return dateStr + "-01";
|
||||
|
|
|
|||
Loading…
Reference in New Issue