From bdd9af51204d2108e2eaf4202310d2c24edea8b5 Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期四, 28 九月 2023 11:33:39 +0800 Subject: [PATCH] 进件签约bug --- ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/console/ShopController.java | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/console/ShopController.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/console/ShopController.java index fdc0a46..03f7e1e 100644 --- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/console/ShopController.java +++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/console/ShopController.java @@ -16,7 +16,7 @@ import com.ruoyi.system.api.constant.AppErrorConstant; import com.ruoyi.system.api.domain.dto.*; import com.ruoyi.system.api.domain.poji.shop.Shop; -import com.ruoyi.system.api.domain.poji.shop.ShopProportionVo; +import com.ruoyi.system.api.domain.vo.ShopProportionVo; import com.ruoyi.system.api.domain.poji.sys.SysUser; import com.ruoyi.system.api.domain.vo.*; import com.ruoyi.system.api.model.QwH5LoginVo; @@ -94,7 +94,7 @@ if(shop.getFrozenFlag()==1){ String userKey = SecurityUtils.getUserKey(); redisService.deleteObject(CacheConstants.LOGIN_TOKEN_KEY+userKey); - throw new ServiceException("商户已被冻结",401); + throw new ServiceException("商户已被冻结,请联系管理员",401); } // 构造登录返回信息 QwH5LoginVo qwH5LoginVo = new QwH5LoginVo(); @@ -150,10 +150,10 @@ @PostMapping("/getShopByBelongUserId") public R<ShopRelUserVo> getShopByBelongUserId(@RequestBody Long userId) { - Shop shop = shopService.getShopByBelongUserId(userId); - Optional.ofNullable(shop).orElseThrow(() -> new ServiceException("未查询到商户信息")); + List<Shop> shopList = shopService.getShopByBelongUserId(userId); + Optional.ofNullable(shopList.get(0)).orElseThrow(() -> new ServiceException("未查询到商户信息")); ShopRelUserVo shopRelUserVo = new ShopRelUserVo(); - shopRelUserVo.setShopId(shop.getShopId()); + shopRelUserVo.setShopId(shopList.get(0).getShopId()); return R.ok(shopRelUserVo); } @@ -359,4 +359,18 @@ shopService.authShop(); return R.ok(); } + + /** + * @description 获取今日任务通知列表 + * @author jqs + * @date 2023/8/29 15:03 + * @param + * @return R<List<MgtUserTaskMsgVo>> + */ + @PostMapping("/getTaskMsgList") + R<List<MgtUserTaskMsgVo>> getTaskMsgList(){ + List<MgtUserTaskMsgVo> userTaskMsgVoList = shopService.getTaskMsgList(); + return R.ok(userTaskMsgVoList); + } + } -- Gitblit v1.7.1