|
|
|
|
225
|
}
|
225
|
}
|
226
|
List<Assign> list = assignRepository.findByThisUnitStuIds(req.exam_id, thisUnitStuIds);
|
226
|
List<Assign> list = assignRepository.findByThisUnitStuIds(req.exam_id, thisUnitStuIds);
|
227
|
setAssignProperties(list);
|
227
|
setAssignProperties(list);
|
228
|
List<PRPExcelEntity> beans = new ArrayList<>();
|
|
|
|
|
228
|
List<UPExcelEntity> beans = new ArrayList<>();
|
229
|
for (Assign assign : list) {
|
229
|
for (Assign assign : list) {
|
230
|
PRPExcelEntity entity = new PRPExcelEntity();
|
|
|
|
|
230
|
UPExcelEntity entity = new UPExcelEntity();
|
231
|
BeanUtils.copyProperties(assign, entity);
|
231
|
BeanUtils.copyProperties(assign, entity);
|
232
|
beans.add(entity);
|
232
|
beans.add(entity);
|
233
|
}
|
233
|
}
|
|
|
|
|
238
|
// title的参数为ExportParams类型,目前仅仅在ExportParams中设置了sheetName
|
238
|
// title的参数为ExportParams类型,目前仅仅在ExportParams中设置了sheetName
|
239
|
oneSheet.put("title", exportParams);
|
239
|
oneSheet.put("title", exportParams);
|
240
|
// 模版导出对应得实体类型
|
240
|
// 模版导出对应得实体类型
|
241
|
oneSheet.put("entity", PRPExcelEntity.class);
|
|
|
|
|
241
|
oneSheet.put("entity", UPExcelEntity.class);
|
242
|
// sheet中要填充得数据
|
242
|
// sheet中要填充得数据
|
243
|
oneSheet.put("data", beans);
|
243
|
oneSheet.put("data", beans);
|
244
|
sheetsList.add(oneSheet);
|
244
|
sheetsList.add(oneSheet);
|