generated from dxfeng/secondev-chapanda-feishu
#3286963 简历识别录入功能二开
This commit is contained in:
parent
552853f0ce
commit
691db66a34
|
|
@ -69,7 +69,7 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
int secCategory = Convert.toInt(new BaseBean().getPropValue("resume_qianliling", "RESUMES_CATEGORY"));
|
||||
try {
|
||||
int docId = RecruitModeUtil.createDocId(secCategory, Convert.toInt(resumeId), user);
|
||||
resumeData.put("ysjl", docId);
|
||||
resumeData.put("ysjl", String.valueOf(docId));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
@ -79,7 +79,7 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
|
||||
// 状态
|
||||
resumeData.put("zt", ApplicationStatusEnum.DISTRIBUTION.getValue());
|
||||
resumeData.put("dqypjd1", "0");
|
||||
resumeData.put("dqypjd1", 0);
|
||||
String importType = Util.null2String(param.get("importType"));
|
||||
if (StringUtils.isBlank(importType)) {
|
||||
// 默认为 34 导入简历
|
||||
|
|
@ -168,7 +168,7 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
InputStream inputStream = new ByteArrayInputStream(decodedBytes);
|
||||
int imageFileId = RecruitModeUtil.generateImageFileId(inputStream, dataMap.get("xm") + "-" + UUID.randomUUID() + ".png");
|
||||
int docId = RecruitModeUtil.createDocId(Convert.toInt(new BaseBean().getPropValue("resume_qianliling", "RESUMES_CATEGORY")), imageFileId, user);
|
||||
dataMap.put("jlzp", docId);
|
||||
dataMap.put("jlzp", String.valueOf(docId));
|
||||
} catch (Exception e) {
|
||||
baseBean.writeLog("千里聆OCR简历照片解析失败:" + e);
|
||||
}
|
||||
|
|
@ -240,16 +240,16 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
// 0中共党员 1共青团员 2其他党派 3群众
|
||||
switch (zzmm) {
|
||||
case "中共党员":
|
||||
dataMap.put("zzmm", 0);
|
||||
dataMap.put("zzmm", "0");
|
||||
break;
|
||||
case "共青团员":
|
||||
dataMap.put("zzmm", 1);
|
||||
dataMap.put("zzmm", "1");
|
||||
break;
|
||||
case "其他党派":
|
||||
dataMap.put("zzmm", 2);
|
||||
dataMap.put("zzmm", "2");
|
||||
break;
|
||||
case "群众":
|
||||
dataMap.put("zzmm", 3);
|
||||
dataMap.put("zzmm", "3");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue