zhuhaiwen преди 3 години
родител
ревизия
12ca6cc393
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      oa-app/src/main/java/com/css/oa/exam/report/service/ReportService.java

+ 3 - 3
oa-app/src/main/java/com/css/oa/exam/report/service/ReportService.java

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