From 2ed6444f45d227e2acc6de65c3e8b582440fb83a Mon Sep 17 00:00:00 2001 From: luofl <1442745593@qq.com> Date: 星期四, 06 三月 2025 09:20:40 +0800 Subject: [PATCH] 迭代版本:2.28 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 39 insertions(+), 8 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 54cf198..ac1f16a 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 @@ -817,6 +817,21 @@ return R.ok(); } + @PostMapping("/saveWithdrawalAppletAccount") + @ApiOperation(value = "保存提现账户", tags = {"小程序-个人中心-门店管理-门店钱包"}) + public R saveWithdrawalAppletAccount(@RequestBody SaveWithdrawalAccount saveWithdrawalAccount){ + + Shop shop = shopService.getById(saveWithdrawalAccount.getShopId()); + if(null != shop){ + shop.setReceiverAccountNoEnc(saveWithdrawalAccount.getReceiverAccountNoEnc()); + shop.setReceiverNameEnc(saveWithdrawalAccount.getReceiverNameEnc()); + shop.setReceiverAccountType(saveWithdrawalAccount.getReceiverAccountType()); + shop.setReceiverBankChannelNo(saveWithdrawalAccount.getReceiverBankChannelNo()); + shopService.updateById(shop); + } + return R.ok(); + } + /** * 获取所有门店 @@ -840,6 +855,21 @@ } return R.fail("请先配置收款账户"); } + + + @ResponseBody + @GetMapping("/verifyAppletConfiguration") + @ApiOperation(value = "判断是否有提现账户", tags = {"门店后台-财务管理-提现明细","小程序-个人中心-门店管理-门店钱包"}) + public R verifyAppletConfiguration(Integer shopId){ + Shop shop = shopService.getById(shopId); + if(StringUtils.hasLength(shop.getReceiverAccountNoEnc())){ + return R.ok(true); + } + return R.ok(false); + } + + + @@ -874,7 +904,6 @@ /** * 获取指定用户的服务商 - * @param userId * @return */ @GetMapping("/getServiceProvider") @@ -909,13 +938,15 @@ } return getSuperiorStore(appUser1, list, hierarchy, num, pid); } - - - - - - - + + + + + + + + + /** * 获取指定用户的高级服务商 -- Gitblit v1.7.1