| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.cwgl.domain.ReceivableFeeManagement; |
| | | import com.ruoyi.cwgl.service.IReceivableFeeManagementService; |
| | | import com.ruoyi.cwgl.domain.vo.ReceivableBillCreateVo; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | |
| | | { |
| | | 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) |
| | | { |
| | | Integer billId = receivableFeeManagementService.createReceivableBill(billCreateVo); |
| | | return AjaxResult.success(billId); |
| | | } |
| | | } |