| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.cwgl.domain.PayableFeeManagement; |
| | | import com.ruoyi.cwgl.service.IPayableFeeManagementService; |
| | | import com.ruoyi.cwgl.domain.vo.PayableFeeStatisticsVo; |
| | | import com.ruoyi.cwgl.domain.vo.PayableBillCreateVo; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | |
| | | { |
| | | return toAjax(payableFeeManagementService.deletePayableFeeManagementByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 查询应付费用统计信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:payableFeeManagement:query')") |
| | | @GetMapping("/getStatistics/{ids}") |
| | | public AjaxResult getStatistics(@PathVariable Integer[] ids) |
| | | { |
| | | PayableFeeStatisticsVo statisticsVo = payableFeeManagementService.getPayableFeeStatistics(ids); |
| | | return AjaxResult.success(statisticsVo); |
| | | } |
| | | |
| | | /** |
| | | * 创建应付账单 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:payableFeeManagement:edit')") |
| | | @Log(title = "应付费用管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/createBill") |
| | | public AjaxResult createBill(@RequestBody PayableBillCreateVo billCreateVo) |
| | | { |
| | | return toAjax(payableFeeManagementService.createPayableBill(billCreateVo)); |
| | | } |
| | | |
| | | /** |
| | | * 作废应付费用管理记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('cwgl:payableFeeManagement:edit')") |
| | | @Log(title = "应付费用管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/void/{id}") |
| | | public AjaxResult voidPayableFee(@PathVariable("id") Integer id) |
| | | { |
| | | return toAjax(payableFeeManagementService.voidPayableFeeManagement(id)); |
| | | } |
| | | } |