| | |
| | | private TInvoiceService invoiceService; |
| | | @Autowired |
| | | TBillService tBillService; |
| | | @PreAuthorize("@ss.hasPermi('system:invoice:list')") |
| | | @PreAuthorize("@ss.hasPermi('invoice:list')") |
| | | @ApiOperation(value = "获取开票列表") |
| | | @PostMapping("/list") |
| | | public R<PageInfo<TInvoice>> list(@RequestBody TInvoiceQuery query) { |
| | | return R.ok(invoiceService.pageList(query)); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:invoice:delete')") |
| | | @PreAuthorize("@ss.hasPermi('invoice:list:del')") |
| | | @Log(title = "开票信息-删除开票", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除开票") |
| | | @DeleteMapping(value = "/deleteById") |
| | |
| | | |
| | | @ApiOperation(value = "上传开票凭证") |
| | | @PostMapping("/uploadVoucher") |
| | | @PreAuthorize("@ss.hasPermi('invoice:list:payment')") |
| | | public R<Boolean> uploadVoucher(@RequestBody TInvoiceQuery query) { |
| | | TInvoice tInvoice = new TInvoice(); |
| | | tInvoice.setId(query.getId()); |