From 9d66bfbfcda297f628e6a857e343f98422f4534a Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期五, 22 五月 2026 09:32:28 +0800
Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/origin/dev_New_pro' into dev_New_pro_OA

---
 src/main/java/com/ruoyi/purchase/controller/AccountingReportController.java |   56 ++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 40 insertions(+), 16 deletions(-)

diff --git a/src/main/java/com/ruoyi/purchase/controller/AccountingReportController.java b/src/main/java/com/ruoyi/purchase/controller/AccountingReportController.java
index 08733c7..f265ab0 100644
--- a/src/main/java/com/ruoyi/purchase/controller/AccountingReportController.java
+++ b/src/main/java/com/ruoyi/purchase/controller/AccountingReportController.java
@@ -1,41 +1,65 @@
 package com.ruoyi.purchase.controller;
 
-import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.basic.service.ISupplierService;
 import com.ruoyi.framework.aspectj.lang.annotation.Log;
 import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
 import com.ruoyi.framework.web.domain.AjaxResult;
-import com.ruoyi.purchase.dto.InvoicePurchaseDto;
-import com.ruoyi.purchase.dto.InvoicePurchaseReportDto;
-import com.ruoyi.purchase.pojo.InvoicePurchase;
-import com.ruoyi.purchase.service.IInvoicePurchaseService;
-import io.swagger.annotations.Api;
+import com.ruoyi.framework.web.domain.R;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletResponse;
 import lombok.AllArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 @RestController
-@Api(tags = "閲囪喘鎶ヨ〃")
+@Tag(name = "閲囪喘鎶ヨ〃")
 @RequestMapping("/purchase/report")
 @AllArgsConstructor
 public class AccountingReportController {
 
-    @Autowired
-    private IInvoicePurchaseService invoicePurchaseService;
+    private final ISupplierService supplierService;
+
 
     @GetMapping("/list")
     @Log(title = "閲囪喘鎶ヨ〃-椤圭洰鍒╂鼎", businessType = BusinessType.OTHER)
-    public AjaxResult list(Page page, InvoicePurchaseReportDto invoicePurchaseReportDto) {
-        IPage<InvoicePurchaseReportDto> result =invoicePurchaseService.listPurchaseReport(page, invoicePurchaseReportDto);
-        return AjaxResult.success(result);
+    public AjaxResult list(Page page) {
+        return AjaxResult.success();
+    }
+
+    @Log(title = "閲囪喘鎶ヨ〃-椤圭洰鍒╂鼎瀵煎嚭", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @Operation(summary = "閲囪喘鎶ヨ〃-椤圭洰鍒╂鼎瀵煎嚭")
+    public void export(HttpServletResponse response) {
+
     }
 
     @Log(title = "閲囪喘鎶ヨ〃-澧炲�肩◣姣斿", businessType = BusinessType.OTHER)
     @GetMapping("/listVat")
-    public AjaxResult listVat(Page page, InvoicePurchase invoicePurchase) {
-        IPage<InvoicePurchase> result = invoicePurchaseService.listVat(page, invoicePurchase);
-        return AjaxResult.success(result);
+    public AjaxResult listVat(Page page,String month) {
+        return AjaxResult.success();
+    }
+
+    @Log(title = "閲囪喘鎶ヨ〃-澧炲�肩◣姣斿", businessType = BusinessType.EXPORT)
+    @PostMapping("/exportTwo")
+    @Operation(summary = "閲囪喘鎶ヨ〃-澧炲�肩◣姣斿")
+    public void exportTwo(HttpServletResponse response) {
+    }
+
+    @GetMapping("/supplierTransactions")
+    @Log(title = "渚涘簲鍟嗗線鏉�", businessType = BusinessType.OTHER)
+    @Operation(summary = "渚涘簲鍟嗗線鏉�")
+    public R supplierTransactions(Page page, String supplierName) {
+        return R.ok(supplierService.supplierTransactions(page,supplierName));
+    }
+
+    @GetMapping("/supplierTransactionsDetails")
+    @Log(title = "渚涘簲鍟嗗線鏉ユ槑缁�", businessType = BusinessType.OTHER)
+    @Operation(summary = "渚涘簲鍟嗗線鏉ユ槑缁�")
+    public R supplierTransactionsDetails(Page page, Long supplierId) {
+        return R.ok(supplierService.supplierTransactionsDetails(page,supplierId));
     }
 }

--
Gitblit v1.9.3