From 9642725d8b2ab8d13c4ad821e5a72e51e5ffebf2 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期四, 29 六月 2023 13:40:50 +0800 Subject: [PATCH] 修改新增三资公开不显示 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java index 946a463..96267f4 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java @@ -403,10 +403,15 @@ comSanshuoExpertsTwo.add(comSanshuoExpert); } } - comSanshuoExpertTwoVo.setComSanshuoExperts(comSanshuoExpertsOne); - comSanshuoExpertTwoVo.setComSanshuoExpertsTwo(comSanshuoExpertsTwo); - return R.ok(comSanshuoExpertTwoVo); - } + if (level==0){ + comSanshuoExpertTwoVo.setComSanshuoExperts(comSanshuoExpertsOne); + comSanshuoExpertTwoVo.setComSanshuoExpertsTwo(comSanshuoExpertsTwo); + return R.ok(comSanshuoExpertTwoVo); + } + else { + return R.ok(comSanshuoExperts); + } + } @Override public void insertExpert(ComSanshuoExpert expert) { -- Gitblit v1.7.1