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