|
@@ -317,6 +317,17 @@ public class InventoryServiceImpl extends ServiceImpl<InventoryMapper, Inventory
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void exportBackExcel(InventorySelectDto dto) {
|
|
|
+ dto.setPageNum(1);
|
|
|
+ dto.setPageSize(999999999);
|
|
|
+ IWrapper<Inventory> wrapper = getDtoWrapper(dto);
|
|
|
+ Page<InventoryVo> inventoryBackup = baseMapper.getPage(dto.getPage(), wrapper, "inventory_backup");
|
|
|
+ List<InventoryVo> list = inventoryBackup.getRecords();
|
|
|
+ ExcelUtil.export(response, DateUtil.format(dto.getBackupDate(), "yyyy-MM-dd库存数据"),
|
|
|
+ "库存数据", list, InventoryVo.class);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 通过事业部id和出库id获取bom规格库存
|
|
|
*/
|