|
|
|
@ -232,7 +232,7 @@ public class HrmImportAdaptExcelE9 extends BaseBean implements IHrmImportAdapt {
|
|
|
|
|
if ("accounttype".equalsIgnoreCase(voFields[i])) {
|
|
|
|
|
accounttypeIndex = i;
|
|
|
|
|
}
|
|
|
|
|
if (keyFieldIndex != 2 && certificateNumIndex != 29) break;
|
|
|
|
|
//if (keyFieldIndex != 2 && certificateNumIndex != 29) break;
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
Workbook workbook;
|
|
|
|
@ -292,10 +292,12 @@ public class HrmImportAdaptExcelE9 extends BaseBean implements IHrmImportAdapt {
|
|
|
|
|
fieldList.add(cellValue);
|
|
|
|
|
if (keyFieldIndex == k) //如果重复性验证标准数据库字段下标与标准excel模板下标相等,则找到对应的excel验证列
|
|
|
|
|
keyColumn = i;
|
|
|
|
|
if (certificateNumIndex == k) {
|
|
|
|
|
// if (certificateNumIndex == k) {
|
|
|
|
|
if ("身份证号码".equals(cellValue)) {
|
|
|
|
|
certificateNumColumn = i;
|
|
|
|
|
}
|
|
|
|
|
if (accounttypeIndex == k) {
|
|
|
|
|
// if (accounttypeIndex == k) {
|
|
|
|
|
if ("账号类型".equals(cellValue)) {
|
|
|
|
|
accounttypeColumn = i;
|
|
|
|
|
}
|
|
|
|
|
flag = true;
|
|
|
|
@ -550,7 +552,12 @@ public class HrmImportAdaptExcelE9 extends BaseBean implements IHrmImportAdapt {
|
|
|
|
|
if (certificateNumColumn == -1)
|
|
|
|
|
return false;
|
|
|
|
|
String certificateNum = getCellValue(row.getCell((short) certificateNumColumn)).trim();
|
|
|
|
|
String accounttype = getCellValue(row.getCell((short) accounttypeColumn)).trim();
|
|
|
|
|
String accounttype;
|
|
|
|
|
if (accounttypeColumn == -1) {
|
|
|
|
|
accounttype = "";
|
|
|
|
|
} else {
|
|
|
|
|
accounttype = getCellValue(row.getCell((short) accounttypeColumn)).trim();
|
|
|
|
|
}
|
|
|
|
|
String key = getCellValue(row.getCell((short) keyColumn)).trim();
|
|
|
|
|
if (voFields[fieldsMap.get(keyColumn)].equals(""))
|
|
|
|
|
key = getCellValue(row.getCell((short) 0)).trim() + ">" + getCellValue(row.getCell((short) 1)).trim() + "_" + key;
|
|
|
|
|