批量替代BOM

This commit is contained in:
10001392 2024-10-22 15:33:25 +08:00
parent 6db6bc3bef
commit 8f4fb88d4a
1 changed files with 3 additions and 0 deletions

View File

@ -565,6 +565,9 @@ public class BatchBomService {
public Workbook getExportExcelWork(BatchBomQuery query) { public Workbook getExportExcelWork(BatchBomQuery query) {
BomPageVO list = this.getParentBomList(query); BomPageVO list = this.getParentBomList(query);
if (ObjectUtil.isEmpty(list)) {
return new Workbook().addSheet(new ListMapSheet("bom"));
}
long pages = list.getPages(); long pages = list.getPages();
List<BaseBomVO> voList = list.getRecords(); List<BaseBomVO> voList = list.getRecords();
Integer pageCount = Math.toIntExact(pages + 1); Integer pageCount = Math.toIntExact(pages + 1);