| | |
| | | package com.ruoyi.cwgl.controller; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.cwgl.domain.InvoiceBillDetail; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.utils.file.DownloadExportUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.cwgl.domain.InvoiceManage; |
| | | import com.ruoyi.cwgl.domain.InvoiceManageLog; |
| | | import com.ruoyi.cwgl.service.IInvoiceManageService; |
| | | import com.ruoyi.cwgl.service.IInvoiceManageLogService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | |
| | | @RequestMapping("/cwgl/invoiceManage") |
| | | public class InvoiceManageController extends BaseController |
| | | { |
| | | protected final Logger logger = LoggerFactory.getLogger(getClass()); |
| | | |
| | | @Autowired |
| | | private IInvoiceManageService invoiceManageService; |
| | | |
| | | @Autowired |
| | | private IInvoiceManageLogService invoiceManageLogService; |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 申请开票 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:invoiceManage:apply')") |
| | | @Log(title = "发票管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/apply/{id}") |
| | | public AjaxResult applyInvoice(@PathVariable("id") Integer id, @RequestBody List<InvoiceBillDetail> invoiceBillDetails) |
| | | { |
| | | |
| | | |
| | | return invoiceManageService.applyInvoice(id,invoiceBillDetails); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 修改发票管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:invoiceManage:edit')") |
| | |
| | | { |
| | | return toAjax(invoiceManageService.deleteInvoiceManageByIds(ids)); |
| | | } |
| | | |
| | | } |