|
|
|
@ -4,6 +4,7 @@ import com.api.browser.bean.SearchConditionItem;
|
|
|
|
|
import com.api.browser.bean.SearchConditionOption;
|
|
|
|
|
import com.api.browser.util.ConditionFactory;
|
|
|
|
|
import com.api.browser.util.ConditionType;
|
|
|
|
|
import com.engine.hrm.util.face.hrmrestful.service.HrmFieldManagerForService;
|
|
|
|
|
import com.engine.organization.entity.fieldset.param.FieldTransferParam;
|
|
|
|
|
import com.engine.organization.entity.jclimport.po.HrmFormFieldPO;
|
|
|
|
|
import com.engine.organization.entity.jclimport.po.JclImportHistoryDetailPO;
|
|
|
|
@ -23,7 +24,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
|
import weaver.file.ImageFileManager;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
import weaver.hrm.User;
|
|
|
|
|
import weaver.hrm.definedfield.HrmFieldManager;
|
|
|
|
|
import weaver.systeminfo.SystemEnv;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
@ -193,7 +193,7 @@ public class CompanyImport {
|
|
|
|
|
if ("subcompanyname".equalsIgnoreCase(infoPO.getFieldName())) {
|
|
|
|
|
reallyValue = cellValue;
|
|
|
|
|
} else {
|
|
|
|
|
reallyValue = HrmFieldManager.getReallyFieldvalue(infoPO.getJsonObject(cellValue));
|
|
|
|
|
reallyValue = HrmFieldManagerForService.getReallyFieldvalue(infoPO.getJsonObject(cellValue), true);
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
historyDetailPO.setOperateDetail(cellValue + "转换失败");
|
|
|
|
@ -228,7 +228,7 @@ public class CompanyImport {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
map.put("supsubcomid", parentCompanyId);
|
|
|
|
|
map.put("supsubcomid", Util.null2String(parentCompanyId));
|
|
|
|
|
|
|
|
|
|
companyName = split[split.length - 1];
|
|
|
|
|
map.put("subcompanyname", companyName);
|
|
|
|
@ -265,7 +265,7 @@ public class CompanyImport {
|
|
|
|
|
OrgImportUtil.saveImportDetailLog(historyDetailPO);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
map.put("id", companyId);
|
|
|
|
|
map.put("id", Util.null2String(companyId));
|
|
|
|
|
Map<String, Object> syncMap = new OrganizationSyncEc(user, LogModuleNameEnum.COMPANY, OperateTypeEnum.UPDATE, map, false).sync();
|
|
|
|
|
if (OrgImportUtil.isThrowError(syncMap)) {
|
|
|
|
|
// 刷新组织架构图
|
|
|
|
|