| | |
| | | */ |
| | | @Log(title = "导出销售台账发货单", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportShippingNote") |
| | | public void exportShippingNote(HttpServletResponse response, @RequestParam("ids") String idsStr) { |
| | | public void exportShippingNote(HttpServletResponse response, @RequestParam("ids") String idsStr) throws Exception { |
| | | // 将逗号分隔的字符串转换为List<Long> |
| | | List<Long> ids = Arrays.stream(idsStr.split(",")) |
| | | .map(Long::parseLong) |
| | | .collect(Collectors.toList()); |
| | | System.out.println("导出销售台账发货单,ID列表: " + ids); |
| | | salesLedgerService.exportShippingNote(response, ids); |
| | | } |
| | | |