From 86c38d586645e8ed14c32e1a69faf5540a27ff61 Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期六, 08 十月 2022 15:01:28 +0800 Subject: [PATCH] update --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java index 70b3ae3..e4b9218 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java @@ -58,9 +58,8 @@ * 小程序获取可选择专家 * */ @GetMapping("/appletsList") - public R appList(){ - comSanShuoExpertService.selectExpertList(); - return R.ok(comSanShuoExpertService.list(new QueryWrapper<ComSanshuoExpert>().eq("status",1).eq("del_flag",1))); + public R appList(@RequestParam (value = "type",required = false)Integer type,@RequestParam(value = "id",required = false)Long id){ + return comSanShuoExpertService.selectExpertList(type, id,this.getLoginUserInfo().getCommunityId()); } /** @@ -73,6 +72,7 @@ expert.setUpdateTime(new Date()); return R.ok(comSanShuoExpertService.updateById(expert)); } + /** * 后台获取列表 @@ -98,7 +98,12 @@ ComSanshuoExpert expert = comSanShuoExpertService.getById(id); expert.setStatus(0); expert.setDelFlag(0); - return R.ok(comSanShuoExpertService.updateById(expert)); + boolean b = comSanShuoExpertService.updateById(expert); + if (b){ + //删除专家账号的权限 + userService.removeExpertRole(expert.getPhone()); + } + return R.ok(); } /** @@ -154,4 +159,7 @@ return R.fail(); } + + + } -- Gitblit v1.7.1