From ab01a0f611c0adb97662bc8f548ca4a911ec8045 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 06 六月 2025 17:37:39 +0800 Subject: [PATCH] 分页修改 --- src/main/java/com/ruoyi/purchase/controller/PaymentRegistrationController.java | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ruoyi/purchase/controller/PaymentRegistrationController.java b/src/main/java/com/ruoyi/purchase/controller/PaymentRegistrationController.java index 6ba3a59..2dcbc80 100644 --- a/src/main/java/com/ruoyi/purchase/controller/PaymentRegistrationController.java +++ b/src/main/java/com/ruoyi/purchase/controller/PaymentRegistrationController.java @@ -7,6 +7,7 @@ import com.ruoyi.framework.web.controller.BaseController; import com.ruoyi.framework.web.domain.AjaxResult; import com.ruoyi.framework.web.page.TableDataInfo; +import com.ruoyi.purchase.dto.PaymentHistoryRecordVo; import com.ruoyi.purchase.dto.PaymentLedgerDto; import com.ruoyi.purchase.dto.PaymentRegistrationDto; import com.ruoyi.purchase.pojo.PaymentRegistration; @@ -113,4 +114,39 @@ public AjaxResult paymentMonthList() { return success(paymentRegistrationService.paymentMonthList()); } + + /** + * 鏌ヨ浠樻鐧昏鍒楄〃 + * + * @param paymentRegistrationDto 浠樻鐧昏 + * @return 浠樻鐧昏闆嗗悎 + */ + @GetMapping("/paymentHistoryList") + public TableDataInfo paymentHistoryList(PaymentRegistrationDto paymentRegistrationDto) { + startPage(); + List<PaymentRegistrationDto> list = paymentRegistrationService.paymentHistoryList(paymentRegistrationDto); + return getDataTable(list); + } + + /** + * 鏌ヨ渚涘簲鍟嗗線鏉ヨ褰� + * @param supplierId + * @return + */ + @GetMapping("/getPaymentRecordList/{supplierId}") + public AjaxResult getPaymentRecordList(@PathVariable Long supplierId) { + List<PaymentHistoryRecordVo> paymentRecordList = paymentRegistrationService.getPaymentRecordList(supplierId); + return success(paymentRecordList); + } + + /** + * 鏌ヨ浠樻鐧昏鍒楄〃 + * + * @param paymentRegistrationDto 浠樻鐧昏 + * @return 浠樻鐧昏闆嗗悎 + */ + @GetMapping("/paymentHistoryListPage") + public IPage<PaymentRegistrationDto> paymentHistoryListPage(Page page, PaymentRegistrationDto paymentRegistrationDto) { + return paymentRegistrationService.paymentHistoryListPage(page,paymentRegistrationDto); + } } -- Gitblit v1.9.3