From a323bb6fbfdd9fa7bc03465b7fbed2baf6d0fa84 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 27 十二月 2024 09:34:47 +0800
Subject: [PATCH] 合并代码

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopBalanceStatementController.java |   36 ++++++++++++++++++++++++++++++------
 1 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopBalanceStatementController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopBalanceStatementController.java
index ca0d70a..f703879 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopBalanceStatementController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopBalanceStatementController.java
@@ -9,20 +9,19 @@
 import com.ruoyi.other.api.domain.Shop;
 import com.ruoyi.other.api.domain.ShopBalanceStatement;
 import com.ruoyi.other.dto.ShopBalanceDto;
+import com.ruoyi.other.mapper.ShopBalanceStatementMapper;
 import com.ruoyi.other.service.ShopBalanceStatementService;
 import com.ruoyi.other.service.ShopService;
 import com.ruoyi.other.vo.ShopCommissionStatisticsVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletResponse;
 import java.math.BigDecimal;
+import java.util.List;
 import java.util.List;
 
 /**
@@ -41,6 +40,15 @@
     private ShopBalanceStatementService shopBalanceStatementService;
     @Resource
     private TokenService tokenService;
+    @Resource
+    private ShopBalanceStatementMapper shopBalanceStatementMapper;
+    
+    @Resource
+    private ShopService shopService;
+    
+    
+    
+    
 
     /**
      * 门店分佣统计
@@ -68,8 +76,7 @@
 
     }
 
-   @Resource
-   private ShopService shopService;
+   
     @GetMapping("/commissionStatistics/info")
     @ApiOperation(value = "门店余额明细上方数据", notes = "门店余额明细", tags = {"门店后台"})
     public R<ShopBalanceDto> shopCommissionStatisticsinfo(){
@@ -124,5 +131,22 @@
         util.exportExcel(response, statementIPage.getRecords(), "用户积分统计");
     }
 
+
+
+    @PostMapping("/getList")
+    public R<List<ShopBalanceStatement>> getList(@RequestBody ShopBalanceStatement shopBalanceStatement){
+        return R.ok(shopBalanceStatementMapper.selectShopBalanceStatementList(shopBalanceStatement));
+    }
+    
+    
+    /**
+     * 保存门店余额流水
+     * @param shopBalanceStatement
+     */
+    @PostMapping("/saveShopBalanceStatement")
+    public void saveShopBalanceStatement(@RequestBody ShopBalanceStatement shopBalanceStatement){
+        shopBalanceStatementService.save(shopBalanceStatement);
+    }
+
 }
 

--
Gitblit v1.7.1