| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public R pagestockInventory(Page page, StockInventoryDto stockInventoryDto) { |
| | | IPage<StockInventoryDto> stockInventoryDtoIPage = stockInventoryService.pagestockInventory(page, stockInventoryDto); |
| | | return R.ok(stockInventoryDtoIPage); |
| | | } |
| | | |
| | | @GetMapping("/pageScrapStock") |
| | | @Operation(summary = "报废品选料分页(只读,带批号)") |
| | | public R pageScrapStock(Page page, StockInventoryDto stockInventoryDto) { |
| | | IPage<StockInventoryDto> result = stockInventoryService.pageScrapStock(page, stockInventoryDto); |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @GetMapping("/pageListCombinedStockInventory") |
| | |
| | | @Log(title = "下载库存导入模板", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/downloadStockInventory") |
| | | public void downloadStockInventory(HttpServletResponse response) { |
| | | List<StockInventoryExportData> list = new ArrayList<>(); |
| | | ExcelUtil<StockInventoryExportData> util = new ExcelUtil<>(StockInventoryExportData.class); |
| | | util.exportExcel(response, list, "库存模板"); |
| | | util.importTemplateExcel(response, "库存模板"); |
| | | } |
| | | |
| | | @PostMapping("/exportStockInventory") |