|
|
@ -103,8 +103,9 @@ public class IcResiUserExportServiceImpl implements IcResiUserExportService { |
|
|
|
ExcelWriter excelWriter = null; |
|
|
|
WriteSheet writeSheet = null; |
|
|
|
try { |
|
|
|
String dynamicCustomerId=StringUtils.isNotBlank(exportResiUserFormDTO.getCustomerId()) ? exportResiUserFormDTO.getCustomerId() : tokenDto.getCustomerId() |
|
|
|
//获取用户配置的导出条件
|
|
|
|
Result<IcCustomExportResultDTO> exportConfigResult = this.getIcCustomExportConfig(searchForm.getCustomerId(), templateId, exportResiUserFormDTO.getExportConfig()); |
|
|
|
Result<IcCustomExportResultDTO> exportConfigResult = this.getIcCustomExportConfig(dynamicCustomerId, templateId, exportResiUserFormDTO.getExportConfig()); |
|
|
|
|
|
|
|
Map<String, ExportResiUserItemDTO> itemOriginMap = getItemMap(searchForm.getCustomerId()); |
|
|
|
IcCustomExportResultDTO exportConfigData = exportConfigResult.getData(); |
|
|
@ -244,7 +245,7 @@ public class IcResiUserExportServiceImpl implements IcResiUserExportService { |
|
|
|
*/ |
|
|
|
public void validateSearchForm(TokenDto tokenDto, ExportResiUserFormDTO exportResiUserFormDTO) { |
|
|
|
IcResiUserPageFormDTO searchForm = exportResiUserFormDTO.getSearchForm(); |
|
|
|
searchForm.setCustomerId(StringUtils.isNotBlank(exportResiUserFormDTO.getCustomerId()) ? exportResiUserFormDTO.getCustomerId() : tokenDto.getCustomerId()); |
|
|
|
searchForm.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
searchForm.setStaffId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(searchForm, IcResiUserPageFormDTO.AddUserInternalGroup.class); |
|
|
|
} |
|
|
|