MODIFY-简历识别,去除性别默认赋值

This commit is contained in:
dxfeng 2024-06-25 17:56:51 +08:00
parent 070a4103a3
commit 77bb6c926e
1 changed files with 8 additions and 2 deletions

View File

@ -175,8 +175,14 @@ public class ResumeIdentifyServiceImpl extends Service implements ResumeIdentify
String csrq = personalInformation.getString("出生日期");
dataMap.put("csrq", parseDateObject(csrq));
// 性别 默认为男
String xb = "".equals(personalInformation.getString("性别")) ? "1" : "0";
dataMap.put("xb", xb);
String xb = personalInformation.getString("性别");
if ("".equals(xb)) {
dataMap.put("xb", 1);
} else if("".equals(xb)){
dataMap.put("xb", 0);
}else{
dataMap.put("xb", "");
}
// 体重KG
String tz = personalInformation.getString("体重");
dataMap.put("tzkg", Convert.toDouble(tz));