| | |
| | | * @param invoiceLedgerDto |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | public AjaxResult invoiceLedgerAdd(@RequestBody InvoiceLedgerDto invoiceLedgerDto) { |
| | | invoiceLedgerService.invoiceLedgerAdd(invoiceLedgerDto); |
| | | @PostMapping("/saveOrUpdate") |
| | | public AjaxResult invoiceLedgerSaveOrUpdate(@RequestBody InvoiceLedgerDto invoiceLedgerDto) { |
| | | invoiceLedgerService.invoiceLedgerSaveOrUpdate(invoiceLedgerDto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/del") |
| | | public AjaxResult invoiceLedgerDel(@RequestParam List<Integer> ids) { |
| | | public AjaxResult invoiceLedgerDel(@RequestBody List<Integer> ids) { |
| | | invoiceLedgerService.invoiceLedgerDel(ids); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 开票台账修改 |
| | | * @param invoiceLedgerDto |
| | | * @return |
| | | */ |
| | | @PostMapping("/update") |
| | | public AjaxResult invoiceLedgerUpdate(@RequestBody InvoiceLedgerDto invoiceLedgerDto) { |
| | | invoiceLedgerService.invoiceLedgerUpdate(invoiceLedgerDto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 附件下载 |
| | | * 开票台账导出 |
| | | * @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); |
| | | } |
| | | |
| | | /** |
| | | * 开票台账详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/info") |
| | | public AjaxResult invoiceLedgerInfo(Integer id) { |
| | | 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()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 开票台账查询 |
| | | * @param invoiceLedgerDto |
| | | * @return |
| | | */ |
| | | @GetMapping("/list") |
| | | public AjaxResult invoiceLedgerList(InvoiceLedgerDto invoiceLedgerDto) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerList(invoiceLedgerDto)); |
| | | } |
| | | |
| | | /** |
| | | * 客户销售记录 |
| | | * @param page |
| | | * @param invoiceLedgerDto |
| | | * @return |
| | | */ |
| | | @GetMapping("/salesAccount") |
| | | public AjaxResult invoiceLedgerSalesAccount(Page page, InvoiceLedgerDto invoiceLedgerDto) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerSalesAccount(page,invoiceLedgerDto)); |
| | | } |
| | | |
| | | } |