From 17abf0608f62cdd318dba3e7b12a32ea486cb482 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期一, 21 四月 2025 20:34:03 +0800
Subject: [PATCH] 导入导出,财务统计

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java
index 847621e..666e57f 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java
@@ -15,6 +15,7 @@
 import com.ruoyi.account.api.model.AppUserShop;
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.common.core.utils.bean.BeanUtils;
+import com.ruoyi.common.core.utils.poi.ExcelUtil;
 import com.ruoyi.common.core.web.controller.BaseController;
 import com.ruoyi.common.core.web.page.PageInfo;
 import com.ruoyi.common.security.service.TokenService;
@@ -50,6 +51,7 @@
 import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
 import java.math.BigDecimal;
 import java.math.MathContext;
 import java.math.RoundingMode;
@@ -705,7 +707,7 @@
 */
 
     /**
-     * 获取店铺收益 后天-工作台-收益分析
+     * 获取店铺收益 后台-工作台-收益分析
      */
     @PostMapping("/getIncomeAnalysis")
     R<Map<String, Object>> getIncomeAnalysis(@RequestBody ShopAnalysisDTO shopAnalysisDTO){
@@ -726,6 +728,30 @@
         return R.ok(shop.getId());
     }
 
+    /**
+     * 店铺余额列表
+     */
+
+    @GetMapping("/getBalanceList")
+    @ApiOperation(value = "门店余额列表", tags = {"后台-财务统计-余额列表"})
+    R<PageInfo<ShopBalanceListVO>> getBalanceList(@ApiParam("门店名称")@RequestParam("name") String name,
+                     @ApiParam("当前页")@RequestParam("pageCurr") Integer pageCurr,
+                     @ApiParam("分页大小")@RequestParam("pageSize") Integer pageSize){
+        PageInfo<ShopBalanceListVO> pageInfo=shopService.getBalanceList(name,pageCurr,pageSize);
+        return R.ok(pageInfo);
+    }
+
+    /**
+     * 导出店铺余额列表
+     */
+
+    @GetMapping("/shopBalanceExcel")
+    @ApiOperation(value = "导出", tags = {"后台-财务统计-余额列表"})
+    void shopBalanceExcel(HttpServletResponse response,@ApiParam("门店名称")@RequestParam(value = "name" ,required = false) String name){
+        List<ShopBalanceExcel> exportList =shopMapper.shopBalanceExcel(name);
+        ExcelUtil<ShopBalanceExcel> util = new ExcelUtil<ShopBalanceExcel>(ShopBalanceExcel.class);
+        util.exportExcel(response, exportList, "店铺余额列表数据");
+    }
 
 
 }

--
Gitblit v1.7.1