generated from dxfeng/secondev-chapanda-feishu
OCR功能重构
This commit is contained in:
parent
f27809d974
commit
1d50d29f8e
|
|
@ -18,4 +18,21 @@ public interface ResumeRecognitionService {
|
|||
* @return
|
||||
*/
|
||||
Map<String, Object> resumeUpload(Map<String, Object> param);
|
||||
|
||||
/**
|
||||
* 简历上传、解析
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> importResume(Map<String, Object> param);
|
||||
|
||||
|
||||
/**
|
||||
* 获取简历
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> fetchResume(Map<String, Object> param);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ import org.apache.http.impl.client.CloseableHttpClient;
|
|||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import weaver.file.ImageFileManager;
|
||||
import weaver.formmode.recruit.modeexpand.util.RecruitModeUtil;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.general.Util;
|
||||
|
||||
|
|
@ -48,7 +47,8 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
/**
|
||||
* 简历识别类型
|
||||
*/
|
||||
private static final String OCR_TYPE = RecruitModeUtil.getRecruitPropValue("OCR_TYPE");
|
||||
//private static final String OCR_TYPE = RecruitModeUtil.getRecruitPropValue("OCR_TYPE");
|
||||
private static final String OCR_TYPE = "1";
|
||||
|
||||
@Override
|
||||
public Map<String, Object> resumeUpload(Map<String, Object> param) {
|
||||
|
|
@ -76,6 +76,23 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
|
|||
return returnMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> importResume(Map<String, Object> param) {
|
||||
String resumeId = Util.null2String(param.get("resumeId"));
|
||||
Map<String, Object> uploadDataMap = resumeUpload(param);
|
||||
Map<String, String> resumeData = (Map<String, String>) uploadDataMap.get("data");
|
||||
// 添加原始附件字段信息
|
||||
|
||||
// 校验是否可以
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> fetchResume(Map<String, Object> param) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param resumeId 简历ID
|
||||
|
|
|
|||
Loading…
Reference in New Issue