fix(hr): 修正员工基础信息字典字段的大小写问题
- 将nation、marriage等字典字段的键改为大写形式
- 修正political、education、nativePlace等字段对应字典键的大小写
- 统一empType、insuranceType、lztype等字段字典键为大写
- 保证字典字段映射的一致性和正确性
- 优化员工信息导入时的字典字段处理逻辑
| | |
| | | } |
| | | |
| | | // 设置字典类字段 |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "nation", getImportCellValue(rowData, 7), empBaseInfo::setNation); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "marriage", getImportCellValue(rowData, 8), empBaseInfo::setMarriage); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "NATION", getImportCellValue(rowData, 7), empBaseInfo::setNation); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "MARRIAGE", getImportCellValue(rowData, 8), empBaseInfo::setMarriage); |
| | | |
| | | // 身高 |
| | | String stature = getImportCellValue(rowData, 9); |
| | |
| | | empBaseInfo.setStature(Integer.valueOf(stature)); |
| | | } |
| | | |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "plitical", getImportCellValue(rowData, 10), empBaseInfo::setPolitics); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "PLITICAL", getImportCellValue(rowData, 10), empBaseInfo::setPolitics); |
| | | |
| | | // 入职日期 |
| | | String entryDate = getImportCellValue(rowData, 11); |
| | |
| | | empBaseInfo.setEntryDate(DateUtil.parse(entryDate)); |
| | | } |
| | | |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "education", getImportCellValue(rowData, 12), empBaseInfo::setEducation); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "EDUCATION", getImportCellValue(rowData, 12), empBaseInfo::setEducation); |
| | | |
| | | // 工龄 |
| | | String seniority = getImportCellValue(rowData, 13); |
| | |
| | | empBaseInfo.setSeniority(seniority); |
| | | } |
| | | |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "nativePlace", getImportCellValue(rowData, 14), empBaseInfo::setNativePlace); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "NATIVEPLACE", getImportCellValue(rowData, 14), empBaseInfo::setNativePlace); |
| | | |
| | | // 地址信息 |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 15), empBaseInfo::setCensusAddress); |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 16), empBaseInfo::setCurrentAddress); |
| | | |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "empType", getImportCellValue(rowData, 17), empBaseInfo::setEmpType); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "EMPTYPE", getImportCellValue(rowData, 17), empBaseInfo::setEmpType); |
| | | |
| | | // 其他字段 |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 18), empBaseInfo::setGuardNumb); |
| | |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 22), empBaseInfo::setBankName); |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 23), empBaseInfo::setBankNumb); |
| | | |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "insuranceType", getImportCellValue(rowData, 24), empBaseInfo::setInsuranceType); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "INSURANCETYPE", getImportCellValue(rowData, 24), empBaseInfo::setInsuranceType); |
| | | |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 25), empBaseInfo::setSocialNumb); |
| | | setIfNewOrNotBlank(empBaseInfo, isNew, getImportCellValue(rowData, 26), empBaseInfo::setFamily); |
| | |
| | | // 证件列表 |
| | | processCertificateList(empBaseInfo, dicMap, getImportCellValue(rowData, 30)); |
| | | |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "lztype", getImportCellValue(rowData, 31), empBaseInfo::setEntryType); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "LZTYPE", getImportCellValue(rowData, 31), empBaseInfo::setEntryType); |
| | | setDicFieldFromMap(empBaseInfo, dicMap, "archivesStatus", getImportCellValue(rowData, 32), empBaseInfo::setArchivesStatus); |
| | | |
| | | // 身份证有效期 |