| | |
| | | }else{ |
| | | voList = baseMapper.getMeditationListByTagId(null, null); |
| | | } |
| | | // voList = handlePaidMeditation(voList); |
| | | if(voList.isEmpty()){ |
| | | voList = baseMapper.getMeditationListByTagId(null, null); |
| | | voList = voList.stream().limit(1).collect(Collectors.toList()); |
| | | } |
| | | return voList; |
| | | }else{ |
| | | voList = baseMapper.getMeditationListByTagId(null, null); |
| | | voList = voList.stream().limit(1).collect(Collectors.toList()); |
| | | return voList; |
| | | } |
| | | } |
| | |
| | | AppUser appUser = getCurrentUser(); |
| | | LambdaQueryWrapper<Meditation> meditationLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | meditationLambdaQueryWrapper.eq(Meditation::getCateId, cateId); |
| | | meditationLambdaQueryWrapper.eq(Meditation::getListingStatus, 1); |
| | | if (appUser!=null){ |
| | | if (appUser.getSanskritFlag() == 2){ |
| | | meditationLambdaQueryWrapper.eq(Meditation::getSanskrit, 2); |