From 72b44903c7d09fa2480b94597b141415a2534639 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 18 一月 2022 13:24:57 +0800 Subject: [PATCH] Merge branch 'master' into yibin --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java index 2f8779f..6c9aa04 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java @@ -432,4 +432,20 @@ this.baseMapper.batchUpdateMerchantViewNum(viewVOList); return R.ok(); } + + /** + * check商家/店铺是否有效 + * @param userId + * @return + */ + @Override + public Boolean checkStoreIsValid(Long userId) { + R<LoginUserInfoVO> loginUserInfo = userService.getUserInfoByUserId(userId.toString()); + LoginUserInfoVO loginUserInfoVO = + JSONObject.parseObject(JSONObject.toJSONString(loginUserInfo.getData()), LoginUserInfoVO.class); + if (isNull(loginUserInfoVO) || !loginUserInfoVO.getType().equals(10) || loginUserInfoVO.getStatus() != 1) { + return false; + } + return true; + } } -- Gitblit v1.7.1