wujianwei
2025-12-23 880fc56d1342d873a8ed17de3a61afcb194c365e
service/src/main/java/com/ruoyi/cwgl/controller/ReceivableFeeManagementController.java
@@ -17,6 +17,7 @@
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.cwgl.domain.ReceivableFeeManagement;
import com.ruoyi.cwgl.domain.vo.ReceivableBillCreateVo;
import com.ruoyi.cwgl.service.IReceivableFeeManagementService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
@@ -105,4 +106,38 @@
    {
        return toAjax(receivableFeeManagementService.deleteReceivableFeeManagementByIds(ids));
    }
}
    /**
     * 查询应收费用统计信息
     */
    @PreAuthorize("@ss.hasPermi('cwgl:receivableFeeManagement:statistics')")
    @GetMapping("/statistics/{ids}")
    public AjaxResult getStatistics(@PathVariable Integer[] ids)
    {
        return AjaxResult.success(receivableFeeManagementService.getReceivableFeeStatistics(ids));
    }
    /**
     * 创建应收账单
     */
    @PreAuthorize("@ss.hasPermi('cwgl:receivableFeeManagement:createBill')")
    @Log(title = "应收账单管理", businessType = BusinessType.INSERT)
    @PostMapping("/createBill")
    public AjaxResult createBill(@RequestBody ReceivableBillCreateVo billCreateVo)
    {
        return toAjax(receivableFeeManagementService.createReceivableBill(billCreateVo));
    }
    /**
     * 作废应收费用管理记录
     */
    @PreAuthorize("@ss.hasPermi('cwgl:receivableFeeManagement:void')")
    @Log(title = "应收费用管理", businessType = BusinessType.UPDATE)
    @PutMapping("/void/{id}")
    public AjaxResult voidReceivableFee(@PathVariable Integer id)
    {
        return toAjax(receivableFeeManagementService.voidReceivableFeeManagement(id));
    }
}