From 56d62d9edb0dda9ae678dcea2323144db5d11c22 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期六, 28 十二月 2024 18:06:58 +0800 Subject: [PATCH] 修改bug --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopBalanceStatementController.java | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 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 6167079..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,6 +9,7 @@ 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; @@ -41,6 +42,13 @@ 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(){ @@ -130,6 +137,16 @@ 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