|
|
@@ -14,6 +14,7 @@ import com.xjrsoft.common.utils.TreeUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
import com.xjrsoft.module.base.service.IBaseGradeService;
|
|
|
+import com.xjrsoft.module.evaluate.vo.EvaluateTemplatePageVo;
|
|
|
import com.xjrsoft.module.student.dto.PbVXssfdetailPageDto;
|
|
|
import com.xjrsoft.module.student.dto.PbVXsxxsfytbExcelDto;
|
|
|
import com.xjrsoft.module.student.dto.PbVXsxxsfytbPageDto;
|
|
|
@@ -195,12 +196,19 @@ public class ConsumptionController {
|
|
|
return RT.ok(pbVXsxxsfytbService.feeitemStat(dto));
|
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/class-qf-expert-query")
|
|
|
+ @GetMapping(value = "/class-qf-export-query")
|
|
|
@ApiOperation(value="班级欠费排序-导出")
|
|
|
@SaCheckPermission("consumption:detail")
|
|
|
- public RT<PageOutput<ClassQfPageVo>> classQfExpert(@Valid PbVXsxxsfytbStatDto dto){
|
|
|
- Page<ClassQfPageVo> classQfPage = pbVXsxxsfytbService.getClassQfPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
- PageOutput<ClassQfPageVo> pageOutput = ConventPage.getPageOutput(classQfPage, ClassQfPageVo.class);
|
|
|
- return RT.ok(pageOutput);
|
|
|
+ public ResponseEntity<byte[]> classQfExpert(@Valid @RequestBody PbVXsxxsfytbStatDto dto){
|
|
|
+ long count = baseClassService.count();
|
|
|
+ dto.setLimit(1);
|
|
|
+ dto.setSize(Integer.parseInt(count + ""));
|
|
|
+
|
|
|
+
|
|
|
+ List<ClassQfPageVo> records = pbVXsxxsfytbService.getClassQfPage(new Page<>(dto.getLimit(), dto.getSize()), dto).getRecords();
|
|
|
+ ByteArrayOutputStream bot = new ByteArrayOutputStream();
|
|
|
+
|
|
|
+ EasyExcel.write(bot, ClassQfPageVo.class).automaticMergeHead(false).excelType(ExcelTypeEnum.XLSX).sheet().doWrite(records);
|
|
|
+ return RT.fileStream(bot.toByteArray(), "classQf" + ExcelTypeEnum.XLSX.getValue());
|
|
|
}
|
|
|
}
|