generated from dxfeng/secondev-chapanda-feishu
BUG-简历识别V2,BUG修复
This commit is contained in:
parent
3fc8780e22
commit
b94dc7d4d6
|
|
@ -57,14 +57,17 @@ public class RecruitRecordSet {
|
|||
*/
|
||||
public static void insertData(Map<String, Object> dataMap, String tableName) {
|
||||
List<String> fieldList = new ArrayList<>();
|
||||
List<Object> dataList = new ArrayList<>();
|
||||
List<String> dataList = new ArrayList<>();
|
||||
List<String> paramList = new ArrayList<>();
|
||||
|
||||
dataMap.forEach((key, value) -> {
|
||||
if (null != value) {
|
||||
fieldList.add(key);
|
||||
dataList.add(value);
|
||||
paramList.add("?");
|
||||
String valueStr = String.valueOf(value);
|
||||
if(StringUtils.isNotBlank(valueStr)) {
|
||||
fieldList.add(key);
|
||||
dataList.add(valueStr);
|
||||
paramList.add("?");
|
||||
}
|
||||
}
|
||||
});
|
||||
String insertSql = " insert into " + tableName + "(" + StringUtils.join(fieldList, ",") + ") values (" + StringUtils.join(paramList, ",") + ")";
|
||||
|
|
@ -84,14 +87,12 @@ public class RecruitRecordSet {
|
|||
public static void updateDataById(Map<String, Object> dataMap, String tableName) {
|
||||
List<String> fieldList = new ArrayList<>();
|
||||
List<Object> dataList = new ArrayList<>();
|
||||
List<String> paramList = new ArrayList<>();
|
||||
String id = Util.null2String(dataMap.get("id"));
|
||||
dataMap.remove("id");
|
||||
|
||||
dataMap.forEach((key, value) -> {
|
||||
fieldList.add(key + " = ? ");
|
||||
dataList.add(value);
|
||||
paramList.add("?");
|
||||
});
|
||||
dataList.add(id);
|
||||
String updateSql = "update " + tableName + " set " + StringUtils.join(fieldList, ",") + " where id = ? ";
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.engine.resumestorage.service.impl;
|
|||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.engine.core.exception.ECException;
|
||||
|
|
@ -91,6 +92,7 @@ public class ResumeIdentifyServiceImpl extends Service implements ResumeIdentify
|
|||
resumeData.entrySet().removeIf(entry -> !keySet.contains(entry.getKey()));
|
||||
|
||||
|
||||
new BaseBean().writeLog("resumeData="+ JSON.toJSONString(resumeData));
|
||||
// 判断简历信息
|
||||
CheckRepeatResume instance = CheckRepeatResume.getInstance();
|
||||
Map<String, Object> map = instance.insertResumeAndReturn(resumeData);
|
||||
|
|
@ -214,10 +216,12 @@ public class ResumeIdentifyServiceImpl extends Service implements ResumeIdentify
|
|||
|
||||
// 工作经验
|
||||
String gzjyStr = personalInformation.getString("工作经验");
|
||||
if (gzjyStr.contains("到")) {
|
||||
String[] split = gzjyStr.split("到");
|
||||
if (split.length == 2) {
|
||||
gzjyStr = split[1];
|
||||
if(StringUtils.isNotBlank(gzjyStr)) {
|
||||
if (gzjyStr.contains("到")) {
|
||||
String[] split = gzjyStr.split("到");
|
||||
if (split.length == 2) {
|
||||
gzjyStr = split[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
List<Map<String, String>> gzjy = getBrowserArray(gzjyStr, ModeBrowserCommonInfo.TYPE_WORK_EXPERIENCE);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import com.engine.common.util.ServiceUtil;
|
|||
import com.engine.resumestorage.service.ResumeIdentifyService;
|
||||
import com.engine.resumestorage.service.impl.ResumeIdentifyServiceImpl;
|
||||
import com.engine.resumestorage.util.AjaxResult;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.hrm.HrmUserVarify;
|
||||
import weaver.hrm.User;
|
||||
import weaver.integration.logging.Logger;
|
||||
|
|
@ -44,6 +45,7 @@ public class ResumeIdentifyQliAction {
|
|||
User user = HrmUserVarify.getUser(request, response);
|
||||
return AjaxResult.ok(getService(user).saveResumeByImageFileId(Integer.parseInt(imageFileId)));
|
||||
} catch (Exception var5) {
|
||||
new BaseBean().writeLog(var5);
|
||||
this.log.error("千里零...简历上传解析失败!详情:\n" + var5.getMessage());
|
||||
return AjaxResult.error(var5.getMessage());
|
||||
}
|
||||
|
|
@ -59,6 +61,7 @@ public class ResumeIdentifyQliAction {
|
|||
try {
|
||||
return AjaxResult.ok(this.getService().queryByDBId(resumeid));
|
||||
} catch (Exception var5) {
|
||||
new BaseBean().writeLog(var5);
|
||||
this.log.error("简历查询失败!详情:\n" + var5.getMessage());
|
||||
return AjaxResult.error(var5.getMessage());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import com.engine.common.util.ServiceUtil;
|
|||
import com.engine.resumestorage.service.ResumeStorageService;
|
||||
import com.engine.resumestorage.service.impl.ResumeStorageServiceImpl;
|
||||
import com.engine.resumestorage.util.AjaxResult;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.integration.logging.Logger;
|
||||
import weaver.integration.logging.LoggerFactory;
|
||||
|
||||
|
|
@ -36,6 +37,7 @@ public class ResumeStorageAction {
|
|||
try {
|
||||
return AjaxResult.ok(this.getService().saveResumeByImageFileId(Integer.parseInt(imageFileId)));
|
||||
} catch (Exception var5) {
|
||||
new BaseBean().writeLog(var5);
|
||||
this.log.error("简历上传解析失败!详情:\n" + var5.getMessage());
|
||||
return AjaxResult.error(var5.getMessage());
|
||||
}
|
||||
|
|
@ -51,6 +53,7 @@ public class ResumeStorageAction {
|
|||
try {
|
||||
return AjaxResult.ok(this.getService().queryByDBId(resumeid));
|
||||
} catch (Exception var5) {
|
||||
new BaseBean().writeLog(var5);
|
||||
this.log.error("简历查询失败!详情:\n" + var5.getMessage());
|
||||
return AjaxResult.error(var5.getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue