From a44dde62c5650e7b49ac7de65f9c912ebab8edf8 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期一, 26 六月 2023 16:36:58 +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