BUG-简历识别V2,BUG修复

This commit is contained in:
dxfeng 2024-06-11 09:15:17 +08:00
parent 065f559b4e
commit 258251d384
2 changed files with 13 additions and 8 deletions

View File

@ -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, ",") + ")";

View File

@ -364,10 +364,12 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog
// 工作经验
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);