final ListMapString Object sheetData = new ArrayList; for final ServiceTimesAccountVo serviceTimesAccountVo serviceTimesAccountVos final MapString Object map = new HashMap;
final List<Map<String, Object>> sheetData = serviceTimesAccountVos.stream() .map(serviceTimesAccountVo -> { Map<String, Object> map = new HashMap<>(); map.put("empCode", serviceTimesAccountVo.getEmployeeNo()); map.put("empName", serviceTimesAccountVo.getReqName()); map.put("orgName", serviceTimesAccountVo.getCmpName()); map.put("deptName", serviceTimesAccountVo.getDeptName()); map.put("frequency", serviceTimesAccountVo.getFrequency()); return map; }) .collect(Collectors.toList());
return sheetData
原文地址: https://www.cveoy.top/t/topic/is3T 著作权归作者所有。请勿转载和采集!