| | |
| | | package com.ruoyi.sales.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.SupplierManageDto; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.sales.dto.InvoiceLedgerDto; |
| | | import com.ruoyi.sales.service.InvoiceLedgerService; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 附件下载 |
| | | * 开票台账导出 |
| | | * @param response |
| | | * @param invoiceLedgerDto |
| | | * @return |
| | | */ |
| | | @GetMapping("/downloadFile") |
| | | public void invoiceLedgerDownloadFile(HttpServletResponse response, InvoiceLedgerDto invoiceLedgerDto) { |
| | | invoiceLedgerService.invoiceLedgerDownload(response, invoiceLedgerDto); |
| | | @PostMapping("/export") |
| | | public void invoiceLedgerExport(HttpServletResponse response, InvoiceLedgerDto invoiceLedgerDto) { |
| | | invoiceLedgerService.invoiceLedgerExport(response, invoiceLedgerDto); |
| | | } |
| | | |
| | | /** |
| | |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerDetail(id)); |
| | | } |
| | | |
| | | /** |
| | | * 文件提交 |
| | | * @param invoiceLedgerDto |
| | | * @return |
| | | */ |
| | | @PostMapping("/commitFile") |
| | | public AjaxResult invoiceLedgerCommitFile(@RequestBody InvoiceLedgerDto invoiceLedgerDto) { |
| | | try { |
| | | invoiceLedgerService.invoiceLedgerCommitFile(invoiceLedgerDto); |
| | | return AjaxResult.success(); |
| | | }catch (Exception e) { |
| | | return AjaxResult.error(e.getMessage()); |
| | | } |
| | | } |
| | | } |