|
@ -89,23 +89,19 @@ public class IcMoveInRecordController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@PostMapping("export") |
|
|
@PostMapping("export") |
|
|
public void export(@RequestBody IcMoveInListFormDTO formDTO, HttpServletResponse response) throws Exception { |
|
|
public void export(@LoginUser TokenDto tokenDto, @RequestBody IcMoveInListFormDTO formDTO, HttpServletResponse response) throws Exception { |
|
|
formDTO.setCustomerId("45687aa479955f9d06204d415238f7cc"); |
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
/* formDTO.setIsPage(true); |
|
|
/* formDTO.setIsPage(true); |
|
|
IcMoveInListResultDTO resultDTO = icMoveInRecordService.list(formDTO); |
|
|
IcMoveInListResultDTO resultDTO = icMoveInRecordService.list(formDTO); |
|
|
List<IcMoveInRecordExcel> list = ConvertUtils.sourceToTarget(resultDTO.getList(), IcMoveInRecordExcel.class); |
|
|
List<IcMoveInRecordExcel> list = ConvertUtils.sourceToTarget(resultDTO.getList(), IcMoveInRecordExcel.class); |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, IcMoveInRecordExcel.class);*/ |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, IcMoveInRecordExcel.class);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExcelWriter excelWriter = null; |
|
|
ExcelWriter excelWriter = null; |
|
|
formDTO.setPageSize(NumConstant.TEN_THOUSAND); |
|
|
formDTO.setPageSize(NumConstant.TEN_THOUSAND); |
|
|
int pageNo = NumConstant.ONE; |
|
|
int pageNo = NumConstant.ONE; |
|
|
try { |
|
|
try { |
|
|
String fileName = "迁入管理"+DateUtils.format(new Date())+".xlsx"; |
|
|
String fileName = "迁入管理"+DateUtils.format(new Date())+".xlsx"; |
|
|
excelWriter = EasyExcel.write(ExcelUtils.getOutputStreamForExcel(fileName, response), IcMoveInRecordExcel.class).build(); |
|
|
excelWriter = EasyExcel.write(ExcelUtils.getOutputStreamForExcel(fileName, response), IcMoveInRecordExcel.class).build(); |
|
|
|
|
|
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet("Sheet1").registerWriteHandler(new FreezeAndFilter()).build(); |
|
|
WriteSheet writeSheet = EasyExcel.writerSheet("Sheet1").registerWriteHandler(new FreezeAndFilter()).build(); |
|
|
List<IcMoveInRecordExcel> list = null; |
|
|
List<IcMoveInRecordExcel> list = null; |
|
|
do { |
|
|
do { |
|
@ -121,14 +117,6 @@ public class IcMoveInRecordController { |
|
|
excelWriter.finish(); |
|
|
excelWriter.finish(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@RequestMapping("detail") |
|
|
@RequestMapping("detail") |
|
|