xuhy
2025-02-10 c9743d30317ed0aaa70a2f6f3649915051ea59b8
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TBillController.java
@@ -1,6 +1,19 @@
package com.ruoyi.web.controller.api;
import com.ruoyi.common.basic.PageInfo;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.query.TBillQuery;
import com.ruoyi.system.query.TTenantQuery;
import com.ruoyi.system.service.TBillService;
import com.ruoyi.system.vo.TBillVO;
import com.ruoyi.system.vo.TenantVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -12,9 +25,28 @@
 * @author xiaochen
 * @since 2025-01-17
 */
@Api(tags = "租金账单管理")
@RestController
@RequestMapping("/t-bill")
public class TBillController {
    private final TBillService billService;
    @Autowired
    public TBillController(TBillService billService) {
        this.billService = billService;
    }
    /**
     * 获取账单列表
     */
    @ApiOperation(value = "获取账单列表")
    @PostMapping(value = "/pageList")
    public R<PageInfo<TBillVO>> pageList(@RequestBody TBillQuery query) {
        return R.ok(billService.pageList(query));
    }
}