| | |
| | | } |
| | | |
| | | /** |
| | | * 导出销售台账发货单 |
| | | */ |
| | | @Log(title = "导出销售台账发货单", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportShippingNote") |
| | | 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()); |
| | | salesLedgerService.exportShippingNote(response, ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除销售台账 |
| | | */ |
| | | @Log(title = "销售台账", businessType = BusinessType.DELETE) |
| | |
| | | public R getSalesLedgerWithProductsLoss(Long salesLedgerId) { |
| | | return R.ok(salesLedgerService.getSalesLedgerWithProductsLoss(salesLedgerId)); |
| | | } |
| | | } |
| | | } |