|
|
@ -73,6 +73,11 @@ public class IcResiUserExportServiceImpl implements IcResiUserExportService { |
|
|
|
@Autowired |
|
|
|
private IcResiUserImportService icResiUserImportService; |
|
|
|
|
|
|
|
/** |
|
|
|
* key:itemId,value: key:columnName,中文 |
|
|
|
*/ |
|
|
|
private static Map<String, Cache<String, String>> remoteOptionCacheMap = new HashMap<>(); |
|
|
|
|
|
|
|
/** |
|
|
|
* desc: 根据条件查询居民信息并根据配置模板导出 |
|
|
|
* |
|
|
@ -231,9 +236,9 @@ public class IcResiUserExportServiceImpl implements IcResiUserExportService { |
|
|
|
param.setTempId(templateId); |
|
|
|
param.setExportConfig(exportConfig); |
|
|
|
Result<IcCustomExportResultDTO> exportConfigResult = operCustomizeOpenFeignClient.getExcelHeaderAndSqlColumnForExport(param); |
|
|
|
if (!exportConfigResult.success() || exportConfigResult.getData() == null) { |
|
|
|
log.error("获取模板失败,internalMsg:{},msg:{}" + exportConfigResult.getInternalMsg(), exportConfigResult.getMsg()); |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取模板失败" + exportConfigResult.getInternalMsg()); |
|
|
|
if (!exportConfigResult.success() ) { |
|
|
|
log.error("获取模板失败,internalMsg:{},msg:{}" , exportConfigResult.getInternalMsg(), exportConfigResult.getMsg()); |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取模板失败" + exportConfigResult.getInternalMsg(),"获取模板失败" + exportConfigResult.getInternalMsg()); |
|
|
|
} |
|
|
|
IcCustomExportResultDTO data = exportConfigResult.getData(); |
|
|
|
|
|
|
@ -245,12 +250,6 @@ public class IcResiUserExportServiceImpl implements IcResiUserExportService { |
|
|
|
return exportConfigResult; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* key:itemId,value: key:columnName,中文 |
|
|
|
*/ |
|
|
|
private static Map<String, Cache<String, String>> remoteOptionCacheMap = new HashMap<>(); |
|
|
|
|
|
|
|
private void putRemoteValue(Set<FormItemResult> conditionItemSet, String currentStaffAgencyId, Map<String, Object> map, Map<String, Object> originalConditionMap, FormItemResult e, String columnName, String vauleStr) { |
|
|
|
try { |
|
|
|
Map<String, IcResiUserImportServiceImpl.ColumnWrapper> columnWrappers = new HashMap<>(); |
|
|
|