|
@ -135,6 +135,8 @@ public class UserProjectResultServiceImpl extends ServiceImpl<UserProjectResultM |
|
|
if (CollectionUtil.isEmpty(resultEntityList)) { |
|
|
if (CollectionUtil.isEmpty(resultEntityList)) { |
|
|
throw new BaseException("此表单无有效反馈,不能导出"); |
|
|
throw new BaseException("此表单无有效反馈,不能导出"); |
|
|
} |
|
|
} |
|
|
|
|
|
List<PrUserProjectResultExtDTO> extList = prUserProjectResultExtDao.selectResultExtList(request.getProjectKey()); |
|
|
|
|
|
|
|
|
List<Map<String, Object>> resultList = resultEntityList.stream().map(item -> { |
|
|
List<Map<String, Object>> resultList = resultEntityList.stream().map(item -> { |
|
|
Map<String, Object> processData = item.getProcessData(); |
|
|
Map<String, Object> processData = item.getProcessData(); |
|
|
Iterator<String> iterator = processData.keySet().iterator(); |
|
|
Iterator<String> iterator = processData.keySet().iterator(); |
|
@ -148,6 +150,14 @@ public class UserProjectResultServiceImpl extends ServiceImpl<UserProjectResultM |
|
|
|
|
|
|
|
|
processData.put(BaseEntity.Fields.createdTime, item.getCreatedTime()); |
|
|
processData.put(BaseEntity.Fields.createdTime, item.getCreatedTime()); |
|
|
processData.put(UserProjectResultEntity.Fields.submitAddress, item.getSubmitAddress()); |
|
|
processData.put(UserProjectResultEntity.Fields.submitAddress, item.getSubmitAddress()); |
|
|
|
|
|
processData.put(PrUserProjectResultExtDTO.Fields.realName, ""); |
|
|
|
|
|
processData.put(PrUserProjectResultExtDTO.Fields.orgName, ""); |
|
|
|
|
|
extList.forEach(e->{ |
|
|
|
|
|
if(e.getUserProjectResult().equals(item.getId())){ |
|
|
|
|
|
processData.put(PrUserProjectResultExtDTO.Fields.realName, e.getRealName()); |
|
|
|
|
|
processData.put(PrUserProjectResultExtDTO.Fields.orgName, e.getOrgName()); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
return processData; |
|
|
return processData; |
|
|
}).collect(Collectors.toList()); |
|
|
}).collect(Collectors.toList()); |
|
|
List<ExportProjectResultVO.ExcelHeader> allHeaderList = new ArrayList<>(); |
|
|
List<ExportProjectResultVO.ExcelHeader> allHeaderList = new ArrayList<>(); |
|
|