| | |
| | | clientMeditationVO.setRealLearnedNum(clientMeditationVO.getVirtualLearnedNum()+clientMeditationVO.getRealLearnedNum()); |
| | | } |
| | | }else{ |
| | | List<Order> data1 = remoteOrderService.getMeditationIsBuyAll(loginUser.getUserid()).getData(); |
| | | for (ClientMeditationVO clientMeditationVO : meditationListByCateId) { |
| | | clientMeditationVO.setIsBuy(2); |
| | | clientMeditationVO.setRealLearnedNum(clientMeditationVO.getVirtualLearnedNum()+clientMeditationVO.getRealLearnedNum()); |
| | | if (tokenService.getLoginUser()!=null){ |
| | | Order order = data1.stream().filter(e -> e.getBusinessId().equals(clientMeditationVO.getId())).findFirst().orElse(null); |
| | | if (order==null){ |
| | | clientMeditationVO.setIsBuy(2); |
| | | }else{ |
| | | clientMeditationVO.setIsBuy(1); |
| | | } |
| | | }else{ |
| | | clientMeditationVO.setIsBuy(2); |
| | | } |
| | | } |
| | | } |
| | | vo.setClientMeditationVOList(meditationListByCateId); |