| | |
| | | */ |
| | | @PostMapping("/saveOrUpdate") |
| | | @ApiOperation("开票台账新增") |
| | | @Log(title = "开票台账新增", businessType = BusinessType.UPDATE) |
| | | public AjaxResult invoiceLedgerSaveOrUpdate(@RequestBody InvoiceRegistrationProductDto productDto) { |
| | | invoiceLedgerService.invoiceLedgerSaveOrUpdate(productDto); |
| | | return AjaxResult.success(); |
| | |
| | | */ |
| | | @DeleteMapping("/del") |
| | | @ApiOperation("开票台账删除") |
| | | @Log(title = "开票台账删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult invoiceLedgerDel(@RequestBody List<Integer> ids) { |
| | | invoiceLedgerService.invoiceLedgerDel(ids); |
| | | return AjaxResult.success(); |
| | |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperation("开票台账分页查询") |
| | | @Log(title = "开票台账分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerPage(Page page, InvoiceLedgerDto invoiceLedgerDto) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerPage(page, invoiceLedgerDto)); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/fileList") |
| | | @ApiOperation("开票台账文件查询") |
| | | @Log(title = "开票台账文件查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerFileList(Integer invoiceLedgerId) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerFileList(invoiceLedgerId)); |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/uploadFile") |
| | | @ApiOperation("开票台账文件上传") |
| | | @Log(title = "开票台账文件上传", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerUploadFile(MultipartFile file) { |
| | | try { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerUploadFile(file)); |
| | |
| | | */ |
| | | @PostMapping("/export") |
| | | @ApiOperation("开票台账导出") |
| | | @Log(title = "开票台账导出", businessType = BusinessType.EXPORT) |
| | | public void invoiceLedgerExport(HttpServletResponse response, InvoiceRegistrationProductDto invoiceRegistrationProductDto) { |
| | | invoiceLedgerService.invoiceLedgerExport(response, invoiceRegistrationProductDto); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/info") |
| | | @ApiOperation("开票台账详情") |
| | | @Log(title = "开票台账详情", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerInfo(Integer id) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerDetail(id)); |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/commitFile") |
| | | @ApiOperation("文件提交") |
| | | @Log(title = "文件提交", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerCommitFile(@RequestBody InvoiceLedgerDto invoiceLedgerDto) { |
| | | try { |
| | | invoiceLedgerService.invoiceLedgerCommitFile(invoiceLedgerDto); |
| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation("开票台账查询") |
| | | @Log(title = "开票台账查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerList(InvoiceLedgerDto invoiceLedgerDto) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerList(invoiceLedgerDto)); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/salesAccount") |
| | | @ApiOperation("客户销售记录") |
| | | @Log(title = "客户销售记录", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerSalesAccount(Page page, InvoiceLedgerDto invoiceLedgerDto) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerSalesAccount(page,invoiceLedgerDto)); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/getInvoiceAmount") |
| | | @ApiOperation("本月开票金额") |
| | | @Log(title = "本月开票金额", businessType = BusinessType.OTHER) |
| | | public AjaxResult getInvoiceAmount() { |
| | | try { |
| | | BigDecimal amount = invoiceLedgerService.getInvoiceAmount(); |
| | |
| | | */ |
| | | @GetMapping("/registrationProductPage") |
| | | @ApiOperation("产品开票记录查询") |
| | | @Log(title = "产品开票记录查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult registrationProductPage(Page page, InvoiceRegistrationProductDto registrationProductDto) { |
| | | |
| | | return AjaxResult.success(invoiceLedgerService.registrationProductPage(page,registrationProductDto)); |
| | |
| | | */ |
| | | @GetMapping("/invoiceLedgerProductInfo") |
| | | @ApiOperation("产品开票详情") |
| | | @Log(title = "产品开票详情", businessType = BusinessType.OTHER) |
| | | public AjaxResult invoiceLedgerProductDetail(Integer id) { |
| | | return AjaxResult.success(invoiceLedgerService.invoiceLedgerProductDetail(id)); |
| | | } |
| | |
| | | */ |
| | | @DeleteMapping("delInvoiceLedger/{invoiceRegistrationProductId}") |
| | | @ApiOperation("开票台账删除") |
| | | @Log(title = "开票台账删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delInvoiceLedger(@PathVariable Integer invoiceRegistrationProductId) { |
| | | try { |
| | | invoiceLedgerService.delInvoiceLedger(invoiceRegistrationProductId); |