wujianwei
2026-03-20 3ffbb4756bbddcf101d367fdde3dfc7f7ced6bb6
service/src/main/java/com/ruoyi/cwgl/controller/PayableFeeManagementController.java
@@ -18,6 +18,8 @@
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;
@@ -105,4 +107,37 @@
    {
        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:void')")
    @Log(title = "应付费用管理", businessType = BusinessType.UPDATE)
    @PutMapping("/void/{id}")
    public AjaxResult voidPayableFee(@PathVariable("id") Integer id)
    {
        return toAjax(payableFeeManagementService.voidPayableFeeManagement(id));
    }
}