From ea73e0fcc705bd95c35ef95f17f98f482475a0dd Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 14 十一月 2024 13:50:52 +0800 Subject: [PATCH] 代码提交 --- xinquan-modules/xinquan-meditation/src/main/java/com/xinquan/meditation/service/impl/MeditationServiceImpl.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/xinquan-modules/xinquan-meditation/src/main/java/com/xinquan/meditation/service/impl/MeditationServiceImpl.java b/xinquan-modules/xinquan-meditation/src/main/java/com/xinquan/meditation/service/impl/MeditationServiceImpl.java index da2aa61..9df336f 100644 --- a/xinquan-modules/xinquan-meditation/src/main/java/com/xinquan/meditation/service/impl/MeditationServiceImpl.java +++ b/xinquan-modules/xinquan-meditation/src/main/java/com/xinquan/meditation/service/impl/MeditationServiceImpl.java @@ -95,10 +95,14 @@ }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; } } -- Gitblit v1.7.1