批量替代BOM
This commit is contained in:
parent
6db6bc3bef
commit
8f4fb88d4a
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue