From 45fa0764c539a1164affc0937a6870fe988bf2c8 Mon Sep 17 00:00:00 2001 From: lishenao <3065849776@qq.com> Date: 星期三, 25 六月 2025 14:22:35 +0800 Subject: [PATCH] 包名优化 --- 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