| | |
| | | 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; |
| | | } |
| | | } |