From cfad72d6b9d5b67920068c556819dd52bebd6935 Mon Sep 17 00:00:00 2001 From: liyong <18434998025@163.com> Date: 星期二, 24 六月 2025 14:40:07 +0800 Subject: [PATCH] 2025-06-23 采购-来票登记上传接口开发 --- src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java b/src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java index eb917ec..21a601e 100644 --- a/src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java +++ b/src/main/java/com/ruoyi/purchase/controller/PurchaseLedgerController.java @@ -12,6 +12,7 @@ import com.ruoyi.purchase.pojo.PurchaseLedger; import com.ruoyi.purchase.service.IPurchaseLedgerService; import com.ruoyi.sales.service.ISalesLedgerService; +import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -133,7 +134,14 @@ * 鏌ヨ閲囪喘鍙拌处鍒楄〃 */ @GetMapping("/listPage") - public IPage<PurchaseLedger> listPage(Page page, PurchaseLedger purchaseLedger) { - return purchaseLedgerService.selectPurchaseLedgerListPage(page ,purchaseLedger); + public AjaxResult listPage(Page page, PurchaseLedgerDto purchaseLedger) { + return AjaxResult.success(purchaseLedgerService.selectPurchaseLedgerListPage(page ,purchaseLedger)); + } + + @ApiOperation("鐢熸垚閲囪喘搴忓垪鍙�") + @GetMapping("/createPurchaseNo") + @Log(title = "鐢熸垚閲囪喘搴忓垪鍙�", businessType = BusinessType.OTHER) + public AjaxResult createPurchaseNo() { + return AjaxResult.success("鐢熸垚鎴愬姛",purchaseLedgerService.getPurchaseNo()); } } -- Gitblit v1.9.3